Hello, In case you want the die messages also...
chdir '/' or die "Unable to chdir to /: $!"; open STDIN, '/dev/null' or die "Can't read /dev/null: $!"; open STDERR, '>/dev/null' or die "Can't write to /dev/null: $!"; defined(my $pid = fork) or die "Can't fork: $!"; setsid or die "Can't start a new session: $!"; Enjoy...!!! Regards Nishanth --- "Dr.Ruud" <[EMAIL PROTECTED]> wrote: > nishanth ev schreef: > > > defined(my $pid = fork); > > What does that line do? It tests $pid for defined, > but the return value > is not used. > "or die $!" missing? > > -- > Affijn, Ruud > > "Gewoon is een tijger." > > > -- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > <http://learn.perl.org/> > <http://learn.perl.org/first-response> > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>