Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

oneliner: autorun script when I save it in the editor

by FreeBeerReekingMonk (Deacon)
on Mar 26, 2017 at 22:08 UTC ( #1186015=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E 'while(-f $ARGV[0]){ $now=(stat(_))[9]; system($^X,@ARGV) if($
    +now-$prev); $prev=$now; sleep 1}' /home/user/test.pl foo bar
    
  2. or download this
    #! env perl
    my $p1 = $ARGV[0];
    my $p2 = $ARGV[1];
    print "param1=$p1 param2=$p2\n";
    
  3. or download this
    param1=foo param2=bar
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://1186015]
Approved by kcott
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2019-12-15 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?