Article 4WE29 curl command with soap xml writing to log file

curl command with soap xml writing to log file

by
agentguerry
from LinuxQuestions.org on (#4WE29)
I have a script that runs a curl command with a soap xml file.
If i run it manually the output is saved to a log file.

If i put it in cron, the output does not write to a file.

curl --insecure --header "Content-Type:text/xml;charset=UTF-8" --header "SOAPAction: findPeopleByCriteria" --data @soap.xml https://mysite.edu/staff/people.wsdl --cert pemfile.pem >> curlout.log

If i run it manually, i get the output to the file.
But when i set it up via cron to run automatically, no output to the file.

Anyone ever seen this before? I've tried the -o option with curl, different redirect variables (2>&1, etc.) nothing seems to work when its in cron.

Thanks!latest?d=yIl2AUoC8zA latest?i=UTf98uWwoX0:3fCR3znJElg:F7zBnMy latest?i=UTf98uWwoX0:3fCR3znJElg:V_sGLiP latest?d=qj6IDK7rITs latest?i=UTf98uWwoX0:3fCR3znJElg:gIN9vFwUTf98uWwoX0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments