cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3403668 ] Asterisk + sh witch curl = exit code 127

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 03 Sep 2011 20:06:52 -0700

Bugs item #3403668, was opened at 2011-09-03 06:23
Message generated for change (Comment added) made by dfandrich
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3403668&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client module
Group: bad behaviour
>Status: Pending
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
>Assigned to: Dan Fandrich (dfandrich)
Summary: Asterisk + sh witch curl = exit code 127

Initial Comment:
Asterisk dialplan:
System('/home/fsa/my_super_script.sh ...');

my_super_script.sh include:
curl --data-urlencode "date=$1 $2" --data-urlencode "phone=$3" --data-urlencode "message=$4" -f -m 60 $siteurl >> $curllog
result=$?

After running the script as a result is a value (exit code) 127. This return code is not contained in the documentation
When I run the script from the command line as user asterisk problem is not observed. Exit code 0.

----------------------------------------------------------------------

>Comment By: Dan Fandrich (dfandrich)
Date: 2011-09-03 20:06

Message:
This is a curl bug tracker, not an Asterisk support forum. Exit code 127 is
probably "Command not found", i.e. curl isn't even installed, or can't be
found by Asterisk. If you need some help with curl (not Asterisk
configuration), please read the FAQ, then send a message to the curl-users
mailing list.

----------------------------------------------------------------------

Comment By: https://www.google.com/accounts ()
Date: 2011-09-03 06:27

Message:
tavda# uname -a
FreeBSD tavda.local 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Wed Feb 23
06:13:29 YEKT 2011 fsa_at_tavda.local:/usr/obj/usr/src/sys/JABBER i386
tavda# pkg_info|grep curl
curl-7.21.3_2 Non-interactive tool to get files from FTP, GOPHER,
HTTP(S)
tavda# pkg_info|grep asterisk
asterisk18-1.8.6.0 An Open Source PBX and telephony toolkit
tavda#

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3403668&group_id=976
Received on 2011-09-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET