in reply to Re^2: How to know if a perl script is put in the background
in thread How to know if a perl script is put in the background
Can't reproduce it, though I'm also using Linux and bash. With your sample code I'm getting something like:
$ ./724323.pl & [2] 10620
(no further output)
$ ps x | grep 724323 10620 pts/1 T 0:00 /usr/bin/perl ./724323.pl
(the 'T' indicates that the script has been stopped)
$ fg ./724323.pl # Start script -> Waiting 2 seconds -> Waiting 2 seconds # Exiting ..
(after foregrounding it, output continues normally)
|
|---|