Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: how to use perl variable in system command to run on unix

by tousifp (Novice)
on Sep 03, 2013 at 17:25 UTC ( #1052149=note: print w/replies, xml ) Need Help??


in reply to Re: how to use perl variable in system command to run on unix
in thread how to use perl variable in system command to run on unix

I exceuted your lines like this but no result

my $cmd = 'cd /waslogs1/vfoneLog/cposapp && ls -lrt | grep -i "'. $gr +ep_date. q(" | awk '{ print $9 }' > /home/cpos/CRM_Reports/output/fil +elist.txt); system $cmd;

filelist.txt is not written

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2016-09-28 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (535 votes). Check out past polls.