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