I have the following bash script that works as expected when I manually run it
#!/bin/bash
result=$(curl http://myip.com)
echo "$result"
I have created the following cron
*/5 * * * * ./root/script.sh > /root/script.result
The file "script.result" does get created, but it's blank. Any idea what is wrong that the script produces no output when executed by cron?