How to pass the stdout via pipe to shell script, which then passes the output to a command within the shell script and handling SIGINT, SIGSTOP within?
I am working on a script which certainly takes input via pipe
eg: crunch 8 8 | ./MyScript -c rootsh3ll.cap -e essid
The issue I am facing is when I pass the output of crunch to MyScript , it is getting forwarded to the specific command in the script but the trap function isn't working well.
Rather when I don't take output from stdin(by using text file with -d option), trap and MyScript works just fine, even if [^C] or [^Z] is hit, trap functions takes care of those interrupts
Any idea how to fix the issue ?
Posted Feb 21, 2016, 10:10 PM UTC
62