A command will run in command prompt but not in cron service
This command will run just fine and update my dynamic DNS for my SG-1100 in the diagnostics/command prompt but for some reason the exact same command will not run in the cron service. Any ideas?
/usr/bin/fetch http://freedns.afraid.org/dynamic/update.php?xxxxxxMyPrivateKeyxxxxx >> /tmp/freedns_subdmn_mydmn_cm.log 2>&1 &
Cron runs as a different user and usaully the reason for this is no path to the command but that looks OK here.
I would have to guess it's a permissions issue. Will it run if you don't redirect the output?
I can try it without redirects. I'm running it as root in cron. Its abit odd since this runs fine on other machines without even the complete path to the command. But this is a different architecture than x86 and amd64. You not being sure makes me feel less stupid at least (-:
@stephenw10 Found the problem. Somehow characters that don't show up got in there. Perhaps when I did a copy/past from the old config? Manually retyping fixed it. But unlike before, the entire path is required.