in reply to executing a shell script from perl
Having said that, your use of startup script is somewhat ambiguous - do you mean a script to start an application or a script thats runs when the system starts ?
I suspect the answer you seek lies in the use of backticks ...
Have a look at perlfunc, perlop. . my $out = `shell_script`; if (! $out || $out !~ /\d/) { log_error; $out = `alternate_method`; } `bind_cpu $out`; . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: executing a shell script from perl
by JavaFan (Canon) on Jan 13, 2009 at 16:14 UTC | |
by Bloodnok (Vicar) on Jan 13, 2009 at 16:35 UTC | |
by JavaFan (Canon) on Jan 13, 2009 at 16:49 UTC | |
by Zen (Deacon) on Jan 13, 2009 at 17:40 UTC | |
|
Re^2: executing a shell script from perl
by usrlocal (Novice) on Jan 09, 2009 at 17:03 UTC | |
by Anonymous Monk on Jan 13, 2009 at 16:07 UTC |