Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: open a browser from the command line, wait a few seconds, and shut it. (ie, translate forking from bash to perl)

by ikegami (Patriarch)
on Mar 08, 2007 at 18:11 UTC ( #603869=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use IPC::Open2 qw( open2 );
    
    my $pid = open2(my $to_child, my $from_child, 'konqueror', $url);
    sleep(5);
    kill(TERM => $pid);
    
  2. or download this
    my $pid = fork();
    if (!defined($pid)) {
    ...
    
    sleep(5);
    kill(TERM => $pid);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603869]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-05-24 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?