Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Perl Script hangs in background

4 views
Skip to first unread message

WB3KUM/9

unread,
Dec 27, 2000, 4:08:55 PM12/27/00
to
We have a Perl script that runs a remote shell to check for the
existence of a file on a remote system. When run in the foreground it
is fine. When run in the background (i.e. nohup, nohup with &, &, an
"atjob", or a cronjob) in hangs and never completes.

The goodies

Compaq (DEC) Alpha
Tru64 (OSF1) v4.0E
Perl v5.60

Has anyone seen this and enlighten us to correct this problem. We are
all novices at Perl at this time so please be patient.

Thanks

Dennis Breeden
Worldcom Conferencing Unix Administration

Please remove NO SPAM from e-mail address.

Tom Hoffmann

unread,
Dec 27, 2000, 9:57:11 PM12/27/00
to
On Wed, 27 Dec 2000 21:08:55 GMT, WB3KUM/9 <bree...@NO.excite.SPAM.com> wrote:
>We have a Perl script that runs a remote shell to check for the
>existence of a file on a remote system. When run in the foreground it
>is fine. When run in the background (i.e. nohup, nohup with &, &, an
>"atjob", or a cronjob) in hangs and never completes.

IIRC, this is a rsh issue, not a perl issue. Specifically, if no input
is desired you should redirect the input of rsh to /dev/null using the
-n option. See 'man rsh'.

0 new messages