I’ve imported a virtual server yesterday, and all seems well except for one thing. The cron jobs related to the domain are/were all there in webmin, and at least one of them doesn’t work:
the cronjob is to open a dynamic page, read it and save it as an (static) .html page (overwriting the old one). In this case, it does this once an hour. The cron job is run by user ‘root’ and is active.
If I run the command in a browser (perl script) than it does the trick. I deleted the ‘old’ page (the one it has to write over) so it couldn’t have a problem with the old file but still the cronjob doesn’t succeed.
When I click the ‘run now’ button it doesn’t work either, so I got rid of the " > /dev/null 2>&1" behind the command.
When I clicked ‘run now’ again it says this:
Output from command /home/klanten/allesoversterrenkunde.nl/user/htdocs/cgi-bin/scripts/cacher.pl?homefolders=yes ..
/bin/sh: /home/klanten/allesoversterrenkunde.nl/user/htdocs/cgi-bin/scripts/cacher.pl?homefolders=yes: not found
I don’t know what the bin/sh is doing there but find it strange it says ‘not found’ as it’s certainly there.
If I do the same with another cron job (same domain) all goes well, output:
Output from command /home/klanten/allesoversterrenkunde.nl/user/htdocs/cgi-bin/scripts/fotovandedag.pl ..