I want to send the output of uptime
and df
commands to a web app using cURL. I tried:
uptime | curl http://someurl.com -T -
But that didn't seem to send the data.
What is the proper way to send the output of a command to cURL as a POST parameter? (or wget if that's much easier)