Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/fellow/monks.pl
I've coded a perl script to report the status of our Tivoli environment. Everything works fine when I run the script, however, when I put the script in the background with the & operator, the script terminates with the following error.
1 + Stopped (SIGTTIN) nohup ./sm-status.sh &
I could isolate the problem down to this line of code, which executes an rsh to a remote AIX server. rsh works fine, as said before, I can execute the script without a problem.
$tmp = `rsh aixhost2 df -k | awk {'print \$4,\$7'} | grep -v \"Mounted +\"`;
Thanks!
#!/massyn.pl
You never know how important a backup is until you need it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SIGTTIN when running with &
by amphiplex (Monk) on Nov 11, 2002 at 10:06 UTC | |
|
Re: SIGTTIN when running with &
by joe++ (Friar) on Nov 11, 2002 at 10:12 UTC | |
|
Re: SIGTTIN when running with &
by MZSanford (Curate) on Nov 11, 2002 at 13:56 UTC |