Hello,
I'm using analog 4.13 on a SuSE Linux 7.0 system.
I'm starting analog out of a perl script wich provides all parameters.
e.g.:
$command = "analog ";
$retcode = system($command);
print $retcode; # print return code on screen
If analog ends successfully the return code
On Fri, 9 Mar 2001, qwertu wrote:
Hello,
I'm using analog 4.13 on a SuSE Linux 7.0 system.
I'm starting analog out of a perl script wich provides all parameters.
e.g.:
$command = "analog ";
$retcode = system($command);
print $retcode; # print return code on screen
: qwertu [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 7:06 AM
To: [EMAIL PROTECTED]
Subject: [analog-help] return code
Hello,
I'm using analog 4.13 on a SuSE Linux 7.0 system.
I'm starting analog out of a perl script wich provides all parameters.
e.g.:
$command = "a
On Fri, 9 Mar 2001, William Martin wrote:
maybe you could capture the output with backticks instead of system():
$retcode = `$command`;
and parse $retcode for different responses, so your script can then behave
accordingly. of course, you would need to know what the responses are ahead
maybe you could capture the output with backticks instead
of system():
$retcode = `$command`;
and parse $retcode for different responses, so your script
can then behave
accordingly. of course, you would need to know what the
responses are ahead
of time.
Even that
Ok, thank's a lot.
I' think I'll grep analogs output and analyze it via my perl script, so I
can deal with the warnings and react on them.
Yours
Christian Teufel
At 14:12 09.03.2001 +, you wrote:
On Fri, 9 Mar 2001, qwertu wrote:
Hello,
I'm using analog 4.13 on a SuSE Linux 7.0
William Martin wrote:
maybe you could capture the output with backticks instead
of system():
$retcode = `$command`;
and parse $retcode for different responses, so your script
can then behave
accordingly. of course, you would need to know what the
responses are ahead
of
yes, I wondered about that. but there's probably a way to redirect and
capture STDERR. I forget what the code is, though.
$retcode = `$command 21`
or perhaps better,
eval "$command 21";
if( $@ ) {
...
}
Sorry, ignore that eval part -- we're talking system commands here not