Re: executing source command from perl
- From: Peter Makholm <peter@xxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 13:28:39 +0000
david <michaelgang@xxxxxxxxx> writes:
run_command('source init_file');
run_command('mycommand.pl -configfile config -exec ');
I'm guessing that you are trying to read some environment variables
from init_file before running mycommand.pl?
That won't work. First problem is that source is a shell builtin and
not an independent program, this is why you are getting an
error. Another problem is that child processes can't set environment
variables if the parrent process and even if source was a real
program, it couldn't set the environment for mycommand.pl
//Makholm
.
- Follow-Ups:
- Re: executing source command from perl
- From: david
- Re: executing source command from perl
- References:
- executing source command from perl
- From: david
- executing source command from perl
- Prev by Date: Re: monitor unix file for string
- Next by Date: Re: executing source command from perl
- Previous by thread: executing source command from perl
- Next by thread: Re: executing source command from perl
- Index(es):
Relevant Pages
|
|