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
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
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 $
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
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