EXIT STATUS OF MGETTY
Gert Doering (gert@greenie.muc.de)
Tue, 16 Sep 1997 20:44:19 +0200
Hi,
Mustafa Kabakcioglu wrote:
> >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)
faxrunq status is defined to be "success" unless something really bad
happens (like "directory doesn't exist" or something like this).
Since faxrunq can process multiple jobs at one run, it's hard to define a
meaningful result value...
It's a bit unclear to me as to *why* you want to know the result code, or
why you want to run faxrunq from the shell (it's meant to be run by
cron!). Please describe your environment in detail, so we can try to
find a solution for you.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-3545980 gert.doering@physik.tu-muenchen.de
.