kmitchner has asked for the wisdom of the Perl Monks concerning the following question:
Anyone see what I am doing wrong?#!/usr/bin/perl # Test my $pid = run_in_bg(); sleep 5; system("firefox","-remote","openURL(http://www.google.com,new-tab)"); sleep 2; kill 9, $pid; sleep 5; system("ps auxf"); sub run_in_bg { $pid = fork(); if($pid==0) { exec("firefox -private about:blank"); exit(0); } return $pid }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: firefox ghosting when forked
by Corion (Patriarch) on Aug 22, 2012 at 20:13 UTC | |
by kmitchner (Initiate) on Aug 22, 2012 at 20:18 UTC | |
by Corion (Patriarch) on Aug 23, 2012 at 06:26 UTC |