in reply to call a program inside another program
There are different ways of calling other programs depending on whether the child should run in parallel or not, whether the child's output should be captured or not, etc.
If you want to wait for the child program to finish executing before continuing, and you don't need to capture it's output or feed anything to it's STDIN, then you can use system.
Windows: system('program2.pl "username" "userid"'); Elsewhere: system('program2.pl', 'username', 'userid');
Refer to system's documentation for more info including how to check if an error occured.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: call a program inside another program
by Anonymous Monk on Sep 06, 2007 at 11:22 UTC | |
by Corion (Patriarch) on Sep 06, 2007 at 11:31 UTC | |
by Anonymous Monk on Sep 06, 2007 at 12:20 UTC | |
by Corion (Patriarch) on Sep 06, 2007 at 12:22 UTC | |
|
Re^2: call a program inside another program
by Anonymous Monk on Sep 06, 2007 at 05:10 UTC |