cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl with exec from a shell script

From: Harry Sufehmi <milis-ktr_at_harrysufehmi.com>
Date: Fri, 7 Feb 2003 16:42:38 -0000 (GMT Standard Time)

Thanks for the reply Kevin,

When I ran it from command line, I got the trace file.
When it's invoked by BB, there's nothing, no trace file. Hm..

That means curl wasn't even ran?

But then if that's the case, I wonder how come its output ended up in BBOUT
(BB's logfile)....?

Thanks,
Harry

Roth, Kevin P. said:
> Turn on a trace (--trace filename or --trace-ascii filename) and see what you
> get. If it's not self-explanatory, please send us the trace (after filtering
> anything sensitive) and we'll be much more able to help.
>
> - Kevin
>
>
> -----Original Message-----
> From: Harry Sufehmi [mailto:milis-ktr_at_harrysufehmi.com]
> Sent: Friday, February 07, 2003 10:07 AM
>
> ================exec /usr/local/bin/curl -x 10.90.193.209:8080 -d
> "ACCOUNT=myaccount&PASSWORD=mypassword&NUMBER=mymobilephone&MESSAGE=$BBHOSTSVC-$BBCOLORLEVEL-$BBALPHAMSG&ORIGIN=bbserver&CMD=SENDMESSAGE"
> http://smsgate.truesenses.com/cgi-bin/smsgateway.cgi > smsresult.txt
> ===============I got the results from both tries, and they're different.
>
> Calling script from command line results as follows:
> % Total % Received % Xferd Average Speed Time Curr.
> Dload Upload Total Current Left Speed
> 100 117 100 21 100 96 8 41 0:00:02 0:00:02 0:00:00 0
>
>
> Script invoked by BB results as follows: (taken from BBOUT file)
> % Total % Received % Xferd Average Speed Time Curr.
> Dload Upload Total Current Left Speed
> 100 409 0 0 100 409 0 1007 0:00:00 0:00:00 0:00:00 0
>
>
> To be frank, I'm not sure I understand why it (result from BB) is like that.
> Total execution time shows zero, but yet it manages to upload 409 bytes...?
>
> Everything here is on a Debian v30r1 box, and the shell is GNU bash, version
> 2.05a.0(1)-release.

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-02-07