Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Shell Commands executed in perl script

by jabirahmed (Initiate)
on May 22, 2007 at 18:10 UTC ( [id://616823]=note: print w/replies, xml ) Need Help??


in reply to Shell Commands executed in perl script

This is an issue i face long back. So i guess you should put the shell commands in a file like a.sh and invoke that from perl. To analyse the problem further if you could check the ps -ef and figure out how the process is carried.. Do let me know if it works. Try using system or exec and one of them should help ... I guess i used something like open (HANDLE,"ls -altr|grep abc|awk -F '{print NF}'|");
Jabir Ahmed, Bangalore 9980799008
  • Comment on Re: Shell Commands executed in perl script

Replies are listed 'Best First'.
Re^2: Shell Commands executed in perl script
by citromatik (Curate) on May 23, 2007 at 14:22 UTC
    I tried with "system", and it seems to do the work.

    citromatik

Log In?
Username:
Password:

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

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

    No recent polls found