i have a problem between nc and tee,
tee should take the output of nc and print it inside a TXT FILE as you all know.
in kali its working fine, but in Ubuntu the file is created but empty. (nothing is written in it)
i'm using python to call this to command.
cmdping = "sleep 5; echo load_audio "+ids[i][0]+"| nc 127.0.0.1 1234 |
tee >> "+logtxt
p=subprocess.Popen(cmdping, shell=True, stderr=subprocess.PIPE)
i think its a permission issue, or not i don't know, help is appreciated, thank you.
After research, i found out that Kali uses traditional Netcat but Ubuntu uses open BSD netcat, which each one of them acts differently, all you have to do is to install traditional netcat and everything will be fine. steps to install netcat are in the link below: