Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.Eustace From: G.Eustace@massey.ac.nz (Glen Eustace) Newsgroups: comp.lang.perl Subject: Re: Backgrounding a perl program Message-ID: <1991Jun25.205506.22373@massey.ac.nz> Date: 25 Jun 91 20:55:06 GMT References: <1991Jun24.225506.29103@massey.ac.nz> Organization: Massey University, Palmerston North, New Zealand Lines: 33 X-Reader: NETNEWS/PC Version 2.2 >>If I type the command > >> mu_quotasummary | more > >>I get exactly what I wanted. > >> mu_quotasummary > results & > >>sits in a Stopped state, awaiting tty input. >>I don't read from STDIN or /dev/tty at all. Is there some trick to >>getting the program to run in the background. I had wanted to put it >>in to crontab to run every week but my first attempts have meet with >>little success. > >Do you have "rsh" commands in your program? I.e. > > system ("rsh thatmachine doquota"); > >If you do, it is the "rsh" that wants the tty input. Change the >command to > > system ("rsh thatmachine -n doquota"); > This is exactly what I was doing in the perl program. It seems that there is always something lurking to byte the unwary. My appologies for assuming the problem was perl when in fact rsh is the culprit. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Glen Eustace, Systems Software Manager | EMail: G.Eustace@massey.ac.nz Computer Centre, Massey University, Palmerston North, New Zealand Phone: +64 6 356 9099 x7440, Fax: +64 6 350 5607, Timezone: GMT-12