demonjester Posted July 5, 2013 Posted July 5, 2013 (edited) My script works perfect if I execute it from ssh, but when I try to execute it via wps button everything works except using screen command so I can run tcpdump in the background and use screen to view progress later. I have tried different methods, from executing the script on ssh from the wps button to putting the actual code in the wps button textfield (in the gui) I have tried these different combination of switches screen screen -d -m screen -d -m -S screen -S screen -dm screen -dmS and still will not start screen windows if I do it via WPS buttong. Like I mentioned before if i do it within ssh, whether its bash ./script.sh or sh ./script.sh it runs just fine, and I don't know what to do. I want to make it independent so I don't have to have a tablet/laptop attached to it at all time. or briefly. if anybody has any recommendations I would greatly appreciate it. BTW I have been using this wifi connect script inside my script (it was a last minute type thing) http://forums.hak5.org/index.php?/topic/29487-wifi-connect-script-updated-v12/ Edited July 5, 2013 by demonjester Quote
airman_dopey Posted July 7, 2013 Posted July 7, 2013 Not sure how to do it via screen, but have you thought about taking the command you're using in the WPS button script and having it redirect the output to a file you can then tail later? Quote
demonjester Posted July 7, 2013 Author Posted July 7, 2013 Not sure how to do it via screen, but have you thought about taking the command you're using in the WPS button script and having it redirect the output to a file you can then tail later? you mean tcpdump -i wlan0 -w sniffing.cap? Quote
guybrush Posted July 9, 2013 Posted July 9, 2013 why don't you just send the command to the background using the & and record the pid in a temp file somewhere Quote
demonjester Posted July 10, 2013 Author Posted July 10, 2013 why don't you just send the command to the background using the & and record the pid in a temp file somewhere I tried & but it still did not work. I am still experimenting though. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.