[Asterisk-Users] 'System' application exit with error even
ifit performs the job as expected
Armand A. Verstappen
armand at nl.envida.net
Fri Aug 1 07:37:28 MST 2003
> ----- Original Message -----
> From: "Armand A. Verstappen" <armand at nl.envida.net>
> If you create mysystem.c containing:
>
> #include <stdlib.h>
> #include <stdio.h>
>
> int main() {
>
> int ret;
>
> ret = system("/bin/ls > /dev/null");
>
> printf("system(\"/bin/ls > /dev/null\") returned %d\n", ret);
>
> return(ret);
> }
>
> gcc mysystem.c -o mysystem
> ./mysystem
>
> what is the output?
On Fri, 2003-08-01 at 10:40, Dan wrote:
> This is the result:
>
> [root at danpbx temp]# ./mysystem
> system("/bin/ls > /dev/null") returned 0
> [root at danpbx temp]#
Okay, that at least rules out the suggestion earlier in this thread that
your systems' system call is broken.
wkr,
--
Envida http://www.envida.net/
Armand A. Verstappen Graadt van Roggenweg 328
armand at nl.envida.net 3531 AH Utrecht
tel: +31 (0)30 298 2255 Postbus 19127
fax: +31 (0)30 298 2111 3501 DC Utrecht
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030801/bb37e5be/attachment.pgp
More information about the asterisk-users
mailing list