LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   executing a file (http://www.linuxquestions.org/questions/programming-9/executing-a-file-185468/)

pantera 05-24-2004 11:56 PM

executing a file
 
how to execute a file using a perl scripts

infamous41md 05-25-2004 02:06 AM

"execute a file"???
this?
Code:

[n00b@localho.outernet] cat run.pl
#!/usr/bin/perl

system("/bin/echo blablabla");
exec("/bin/ls");
[n00b@localho.outernet] ./run.pl
blablabla
devdr  docs  hax0r  java  kern  programming  run.pl  run.pl~  scrips  tmp



All times are GMT -5. The time now is 10:28 AM.