Capture using backticks.
#script to be called print "hello world\n";
#script that does the calling $output = `perl hello.pl`; print "Hello.pl printed\n\t$output"; #OUTPUT #Hello.pl printed # hello world #
Hope this helps.
In reply to Re: Running a script from a script and capturing its output
by zek152
in thread Running a script from a script and capturing its output
by Logicus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |