[Serusers] [Fwd: exec_dset() error checking?]

Jiri Kuthan jiri at iptel.org
Thu Nov 27 16:38:23 CET 2003


exec_dest expects a URI set on command's output and rewrites current URI with it.
call exec_msg if you just want to exec a command without rewriting URIs.

-jiri

At 09:50 PM 11/26/2003, Alan Crosswell wrote:
>Never mind.  I just had it print the uri instead of printing nothing and it works right.  Just had to RTFS exec.c.
>/a
>
>-------- Original Message --------
>Subject: exec_dset() error checking?
>Date: Wed, 26 Nov 2003 15:39:18 -0500
>From: Alan Crosswell <alan at columbia.edu>
>To: serusers at lists.iptel.org
>
>The following code fragment causes a SER error rather than returning a
>detectable failure:
>
>if (!exec_dset("/etc/ser/sipldap")) {
>        sl_send_reply("404", "Not Found");
>        break;
>}
>
>Nov 26 15:26:32 ren /usr/sbin/ser[30834]: INFO: SIGCHLD received: we do
>not worry about grand-children
>Nov 26 15:26:32 ren /usr/sbin/ser[30834]: ERROR:exec_str: no uri from
>/etc/ser/sipldap sip:wwww at columbia.edu
>
>The script prints a URI and does exit 0 on success.  It prints nothing
>and does exit 1 on failure.  However, this does not appear to be seen as
>a failure by ser but rather a runtime error.  What am I doing wrong?
>
>/a
>PS: The documentation for exec_dset() misspells it as exec_dst() in
>http://iptel.org/ser/doc/modules/html/exec.html
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the sr-users mailing list