LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to execute scripts on opened tool from perl? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-execute-scripts-on-opened-tool-from-perl-698930/)

veereshm 01-21-2009 01:31 PM

how to execute scripts on opened tool from perl?
 
i can interact with my H5 board only by Shell script,Problem here is i need to open that H5 board tool and execute scripts using perl.

system("tool.exe");
need to run script ./MP_strm1_.sh on tool.exe
after first stream i need to handle exceptions and then ./MP_strm2.sh and so on.


Thanks in Advance,
veereshm

chrism01 01-21-2009 05:50 PM

I'm not 100% clear on your qn, but sounds like you want one or other of these modules:
http://perldoc.perl.org/IPC/Open2.html
http://perldoc.perl.org/IPC/Open3.html


All times are GMT -5. The time now is 02:13 AM.