2009/1/11 bft <b...@bft1.org>:
> Hello all,
> I am trying to launch an instance if Firefox, but I do not want my Perl
> script to stop while Firefox is open.
>
> I have tried:
> print `firefox`;
>
> and
>
> print `firefox &`;
>
> Both hang my perl script until I close firefox.
>
> Any suggestions please?
>


maybe launch a child for this external command?

my $pid = fork;
die "can't fork $!" unless defined $pid;

unless ($pid) {  # in the child
     exec "firefox";
}


Ralf.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to