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/