From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,bde3c429c3d6eb88 X-Google-Attributes: gidf72b0,public X-Google-Thread: fa528,bde3c429c3d6eb88 X-Google-Attributes: gidfa528,public X-Google-Thread: fee84,bde3c429c3d6eb88 X-Google-Attributes: gidfee84,public X-Google-Thread: 10d532,bde3c429c3d6eb88 X-Google-Attributes: gid10d532,public X-Google-Thread: f678f,bde3c429c3d6eb88 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 2000-12-27 18:57:12 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!wn3feed!worldnet.att.net!135.173.83.72!wnfilter2!worldnet-localpost!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail From: tom.hoffmann@worldnet.att.net (Tom Hoffmann) Newsgroups: comp.unix.misc,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.osf,comp.unix.tru64 Subject: Re: Perl Script hangs in background References: <3A4A5B5E.D1CA085E@NO.excite.SPAM.com> Reply-To: tom.hoffmann@worldnet.att.net Message-ID: User-Agent: slrn/0.9.6.2 (Linux) Date: Thu, 28 Dec 2000 02:57:11 GMT NNTP-Posting-Host: 32.102.244.141 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 977972231 32.102.244.141 (Thu, 28 Dec 2000 02:57:11 GMT) NNTP-Posting-Date: Thu, 28 Dec 2000 02:57:11 GMT Organization: AT&T Worldnet Xref: supernews.google.com comp.unix.misc:837 comp.unix.tru64:1307 On Wed, 27 Dec 2000 21:08:55 GMT, WB3KUM/9 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'.