python - Tee isn't writing the output of Netcat -
i have problem between nc , tee, tee should take output of nc , print inside txt file know. in kali working fine, in ubuntu file created empty. (nothing written in it)
i'm using python call 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 permission issue, or not don't know, appreciated, thank you.
after research, found out kali uses traditional netcat ubuntu uses open bsd netcat, each 1 of them acts differently, have install traditional netcat , fine. steps install netcat in link below:
Comments
Post a Comment