Have you tried turning the command into a script and then running the script from cron?Hey guys,
I'm trying to use CRON to copy a single file from one directory to another. It doesn't work when I use CRON, but works just fine from the command line.
ex. cp /home/user/directory/file.gif /home/user/public_html
Anybody have any idea what you need to do?
So you're trying to run it as a user? What if you added it as root to crontab? If it set up as a user, is it copying from user directory to user otherdirectory, or is it copying from user1 to user2?Hi guys,
Dan, yes, the folder is in the same user's home directory. At work right now, so I don't have access to /var/log. Will check as soon as I get home.
Pmcwebs, now that I think about it, no. Never received any e-mail from that one. As far as I know, the other crons are working fine on that account, but I'm not 100% sure on that.
Not sure what exactly you want to see.Can you show us the exact line from the crontab?