Hello,
I have the following sh script:
Code:
#!/bin/sh
MYVAR=`uptime`
curl www.mydomain.com/test.php?uptime=$MYVAR
When I execute it I get errors:
Code:
curl: (6) Couldn't resolve host '05:19'
curl: (6) Couldn't resolve host 'up'
curl: (7) Failed to connect to 0.0.0.4: Invalid argument
curl: (6) Couldn't resolve host 'days,'
curl: (6) Couldn't resolve host '8:27,'
curl: (7) Failed to connect to 0.0.0.1: Invalid argument
curl: (6) Couldn't resolve host 'user,'
curl: (6) Couldn't resolve host 'load'
curl: (6) Couldn't resolve host 'average:'
curl: (6) Couldn't resolve host '0.00,'
curl: (6) Couldn't resolve host '0.00,'
curl: (7) Couldn't resolve host '0.00,'
Any ideas?
Adnan