J'ai un travail cron planifié en utilisant cygrunsrv et cron de vixie pour cygwin. Le travail est un script shell qui copie les fichiers d'un répertoire à un autre et les renomme.pourquoi cygwin cron ne peut pas trouver un fichier quand cygwin ls peut?
Le script se trouve dans /home/martin/my/script/copy_files.sh. Et l'autorisation pour le chemin d'accès est:
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
Quand je ls -l, le fichier source est:
-rwxrw-rw- 1 martin Domain Users 13856 2010-06-04 10:05 .bash_history
Mais lorsque le travail est exécuté, la commande cp a échoué en raison
cp: /home/martin/.bash_history: The system cannot find the path specified.
Alors qu'est-ce qui ne va pas? Comment puis-je le réparer?
Merci.