Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found