airmon-ng: ls: cannot access ‘/sys/class/ieee80211/’: No such file or directory

Background: I am running the latest version of Kali Linux in a vmware workstation and I have a Cisco AE2500 wifi usb which works as a wifi adapter in Windows 10. Unfortunately, when i run the airmon-ng command, I receive ls: cannot access ‘/sys/class/ieee80211/’: No such file or directory. I have tried every possible solution … Read more

Prevent automatic EOFs to a named pipe, and send an EOF when I want it

I have a program that exits automatically upon reading an EOF in a given stream ( in the following case, stdin ).
Now I want to make a shell script, which creates a named pipe and connect the program’s stdin to it. Then the script writes to the pipe several times using echo and cat ( and other tools that automatically generates an EOF when they exit ). The problem I’m facing is, when the first echo is done, it sends an EOF to the pipe and make the program exit. If I use something like tail -f then I can’t send an EOF when I intend to quit the program. I’m researching a balanced solution but to no avail.
I’ve already found both how to prevent EOFs and how to manually send an EOF but I can’t combine them. Is there any hint?

Bash: Display exit status in prompt:

GREEN="e[1;32m" RED="e[1;31m" NONE="e[m" get_exit_status(){ es=$? if [ $es -eq 0 ] then echo -e "${GREEN}${es}${NONE}" else echo -e "${RED}${es}${NONE}" fi } get_path(){ #dummy function echo "PATH" } PROMPT_COMMAND='exitStatus=$(get_exit_status)' The following gives me the correct exitStatus but colour variables are not expanded: PS1='${RED}h $(get_path) ${exitStatus}${NONE} ' However, the one below, gives me the colours but the … Read more