cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl with exec from a shell script

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Fri, 7 Feb 2003 10:44:05 -0500

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 http://www.vasoftware.com
Received on 2003-02-07