I got a cron job scheduled by using cygrunsrv and vixie's cron for cygwin. The job is a shell script that copies files from one directory to another and renames them.
The script is in /home/martin/my/script/copy_files.sh. And the permission for the path is:
drwxrwxrwt+ 1 martin root 0 2010-06-02 17:36 home
drwxr-xr-x+ 1 martin Domain Users 0 2010-06-03 16:19 martin
drwxrwxrwt+ 1 martin Domain Users 0 2010-06-02 16:47 my
drwxrwxrwt+ 1 martin Domain Users 0 2010-06-04 16:31 script
-rwxr-xr-x 1 martin Domain Users 439 2010-06-02 18:10 copy_files.sh
When I ls -l, the source file is:
-rwxrw-rw- 1 martin Domain Users 13856 2010-06-04 10:05 .bash_history
But when the job runs, the cp command failed due to
cp: /home/martin/.bash_history: The system cannot find the path specified.
So what is wrong? How can I fix it?
Thank you.