#!/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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.