executing source command from perl
- From: david <michaelgang@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 05:23:54 -0800 (PST)
Dear All,
I want to automize a process in perl.
In this process I have the following code
sub run_command {
my ($command) = @_;
print "$command\n";
system($command) == 0
or die "system $command failed: $? -- $!"
}
run_command('source init_file');
run_command('mycommand.pl -configfile config -exec ');
I get the following error
source init
Can't exec "source": No such file or directory at ..
system source init failed: -1 -- No such file or directory at ...
Can please someone help me to understand what i did wrong.
Best regards,
David
.
- Follow-Ups:
- Re: executing source command from perl
- From: Jürgen Exner
- Re: executing source command from perl
- From: Peter Makholm
- Re: executing source command from perl
- Prev by Date: Re: monitor unix file for string
- Next by Date: Re: monitor unix file for string
- Previous by thread: monitor unix file for string
- Next by thread: Re: executing source command from perl
- Index(es):
Relevant Pages
|
|