| | |
Calling a perlscript within a another script in a loop
![]() |
•
•
Join Date: Jun 2009
Posts: 10
Reputation:
Solved Threads: 0
I am calling the script as exec(called_script.pl, arg1), its calling first time , second execution is not going, it is killing the main process. My second question refers all the time loop increases it should run another instance of the script. Ok can u just tell how to call the script in a loop. Thanks in advance
I guess you didn't read what exec() does.
http://perldoc.perl.org/functions/exec.html
As they say on forums: Read the manual
If you want to run multiple instances of a perl program I think you will want to use threads. Not something I have experience with though:
http://search.cpan.org/~jdhedden/thr....74/threads.pm
•
•
•
•
The exec function executes a system command and never returns-- use system instead of exec if you want it to return
As they say on forums: Read the manual
If you want to run multiple instances of a perl program I think you will want to use threads. Not something I have experience with though:
http://search.cpan.org/~jdhedden/thr....74/threads.pm
Last edited by KevinADC; Aug 14th, 2009 at 1:43 pm.
![]() |
Similar Threads
- I have a form and it is not calling my java script function WHY? (JavaScript / DHTML / AJAX)
- Help Creating Script to Parse a Flat File. (Perl)
- Convert shell script for looping (Shell Scripting)
- Helping with calling a function (C)
- HIDDEN Values <==Java Script Function Return value (JavaScript / DHTML / AJAX)
- Calling one Perl script from another - HELP!!! (Perl)
- Problems with While Loop (PHP)
- Simple script loop question (Shell Scripting)
- How to loop inside application via script (Shell Scripting)
- VB and Web Script (Visual Basic 4 / 5 / 6)
Other Threads in the Perl Forum
- Previous Thread: multiple sorts in same file question
- Next Thread: Perl running as Windows service
| Thread Tools | Search this Thread |





