HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Exit Status messages from faxsend
Quoting Sedat Yilmazer <sedat@kibele.com>:
> If the number is a local one then it makes a system call to the
> faxsend.fax (which is the original faxsend)
> gets the result code and exits with that result code
>
> $result = system("faxsend.fax $ARGV[0] $ARGV[1] $ARGV[2]");
> print ("Deliver result ${result}\n");
> exit ( $result ) ;
>
> After a successful delivery faxsend.fax returns 512. But when I
> return that via the exit the faxqueuer does not remove the fax from
> the send queue. What do I do wrong?
I believe this is Perl, 512 is not the real value returned by the program
so you must not return the value returned from the system call as is:
system(LIST)
system LIST
Does exactly the same thing as "exec LIST" except that a fork is
done first, and the parent process waits for the child process to
complete. Note that argument processing varies depending on the
number of arguments. The return value is the exit status of the
program as returned by the wait() call. To get the actual exit
value divide by 256. See also exec.
--
Patrice Fournier
pfournier@loups.net
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null