[analog-help] return code

2001-03-09 Thread qwertu
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

Re: [analog-help] return code

2001-03-09 Thread Stephen Turner
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

RE: [analog-help] return code

2001-03-09 Thread William Martin
: 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

RE: [analog-help] return code

2001-03-09 Thread Stephen Turner
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

RE: [analog-help] return code

2001-03-09 Thread William Martin
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

Re: [analog-help] return code

2001-03-09 Thread qwertu
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

Re: [analog-help] return code

2001-03-09 Thread Jeremy Wadsack
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

Re: [analog-help] return code

2001-03-09 Thread Jeremy Wadsack
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