EXIT STATUS OF MGETTY

"Robert J. Brown" (rj@eli.elilabs.com)
Tue, 16 Sep 1997 18:57:08 +0200


>>>>> "Mustafa" == Mustafa Kabakcioglu <mkabakci@prizma.net.tr> writes:

 >> To: mgetty-help@crynwr.com From: mkabakci@prizma.net.tr
 >> (Mustafa Kabakcioglu) Subject: EXIT STATUS OF MGETTY
 >> 
 >> dear friends
 >> 
 >> I want to run faxspool and faxrunq program from shell script.
 >> I need exit status of faxrunq. It writes on the screen, but
 >> when I check with "echo $?", it gives me always exit status 0.
 >> How can I use faxrunq from shell script and how can I get exit
 >> status that is written on the screen (exp. status 10,15,12,0)
 >> 
 >> 
 >> 
 Mustafa> Mustafa Kabakcioglu

 Mustafa> Makro Supercenter Bilgi Islem Muduru


Without modifying faxspool and faxrunq, you would have to pipe the
stdout of these scripts thru a parser to determine if the succeded or
not. This is not usually as bad as it sounds. Of course, exit codes
would be nice. :-)

-- 
-------- "And there came a writing to him from Elijah" [2Ch 21:12] --------
Robert Jay Brown III rj@eli.elilabs.com http://www.elilabs.com 1 847 705-0424
Elijah Laboratories Inc.; 37 South Greenwood Avenue; Palatine, IL 60067-6328
----- M o d e l i n g t h e M e t h o d s o f t h e M i n d ------
.