Try this
perl -le'$SIG{INT}='ignore'; system "./loop.sh"; print "command return +ed"; sleep 5; print "exiting"'
Loop.sh
#!/bin/sh while true do time; sleep 1; done
In reply to Re: Run Shell script followed by ctrl-c within perl
by BrowserUk
in thread Run Shell script followed by ctrl-c within perl
by harry1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |