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

Is it possible to execute some command in qx argument

by vladimirfedorov (Novice)
on May 05, 2017 at 05:04 UTC ( [id://1189540]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cmd = "mkdir ";
    my $arg = "temp"; #this arg I pass to the script
    qx($cmd "currentdate$arg");
    
  2. or download this
    my $cmd = "mkdir ";
    my $arg = "; mkdir otherdir";
    qx($cmd "currentdate$arg");
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1189540]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-24 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found