If it's a daemon, use something like start-stop-daemon or use something like Net::Daemon (search cpan). I prefer the former as I find it easier to debug but do have my programs create a pidfile vs having start-stop-daemon do it.
If you just want it put in the background sometimes but generally want to interact with it (and don't use screen or tmux - shame on you for that but I'll try not to judge) see nohup or disown (disown being internal bash). There are also process management systems like gearman (I don't think you're here but just for completeness). On Jun 6, 2013 5:45 AM, "Luca Ferrari" <fluca1...@infinito.it> wrote: > On Wed, Jun 5, 2013 at 1:18 PM, Nemana, Satya <snem...@sonusnet.com> > wrote: > > Hi > > > > > > > > I am having a slight difficulty in getting this accomplished. > > > > When my perl program keeps running, I sometimes need to pause the screen > > output and check some things on the output. > > > > But, I want my program to still keep running while I pause the screen. > > (using ctrl+s on putty) > > > > But the program also is pausing.(I tested this with a simple program > which > > prints number from 1-100 sleeping 1 second after each print , but the > main > > program I am trying to get this working is much complex, so will try > things > > here first before modifying the original program) > > > > > > It is not clear what is the final aim, but having the program to go to > the background would suffice, assuming you have a way to redirect > output somewhere so that it will annoy you and assuming you don't have > to provide input during the process run. > > Luca > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >