This is the mail archive of the
mailing list for the Cygwin project.
Can a .sh script stored in c:\scripts\ (Windows part of filesystem) be run from crontab?
- From: Peder Sverdrup <psverdrup at yahoo dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 27 Jul 2016 15:31:35 +0000 (UTC)
- Subject: Can a .sh script stored in c:\scripts\ (Windows part of filesystem) be run from crontab?
- Authentication-results: sourceware.org; auth=none
- References: <1862051364.5309945.1469633495642.JavaMail.firstname.lastname@example.org>
- Reply-to: Peder Sverdrup <psverdrup at yahoo dot com>
I have my own backupscript, lets call it "bup.sh". It is stored on the c-drive, in the directory c:\scripts\.
When I open the cygwin terminal I can run the script manually. But if I include it in my crontab, it does not run.
If I copy the script to /home/myuser/myscripts/ I can run it from the cygwin terminal, and it also runs from crontab.
Is it not possible to run scripts stored on "the Windows part of the filetree" from crontab?
The crontab entries are:
10 14 * * * /cygdrive/c/scripts/bup.sh
20 14 * * * /home/myuser/myscripts/bup.sh
When I run the script manually, I navigate to the folder where it is stored and do
Kind regards, Peder
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple