Re: background process

2002-09-23 Thread dan
i use a forking mechanism to fork irc services to the background, and it goes like this: ___ START ___ use strict; use POSIX; # run in background? # 1 = yes, 0 = no $daemon = 1; if($daemon) { exit if fork; POSIX::setsid(); } # script goes here ___ END ___ works perfectly well for me :) dan

Re: background process

2002-09-22 Thread Paul Tremblay
On Sun, Sep 22, 2002 at 12:29:08PM +0100, Robin Cragg wrote: > > $MAXSIZE = 500 > $size = 0; > @Zip_Now = (); > $a=1; > > foreach (@Files_to_zip) { > $size += (stat $_)[7]; > if ($size > $MAXSIZE) { > exec "tar -vr -T @Zip_Now -f $tar_file$a"; > # the

RE: background process

2002-09-22 Thread Robin Cragg
y'; [EMAIL PROTECTED] Subject: RE: background process Hi Pual, I think this will do the trick... $MAXSIZE = 500 $size = 0; @Zip_Now = (); foreach (@Files_to_zip) { $size += (stat $_)[7]; if ($size > $MAXSIZE) { exec "tar -vr -T @Zip_Now -f $

RE: background process

2002-09-22 Thread Robin Cragg
Hi Pual, I think this will do the trick... $MAXSIZE = 500 $size = 0; @Zip_Now = (); foreach (@Files_to_zip) { $size += (stat $_)[7]; if ($size > $MAXSIZE) { exec "tar -vr -T @Zip_Now -f $tar_file"; # then burn this to CD @Zi

Re: background process

2001-12-26 Thread K Old
Try either the system function (which will allow you to return to your program after your call to dtterm is finished) or the fork function. Hope this helps, Kevin On Wednesday 26 December 2001 10:56 pm, Ashish Srivastava wrote: > hi everybody, > > how can i run any command in background > like