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:

how switch netcat-traditional in ubuntu?


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -