1

Cygwin Bash Script Initiated from WIN 7 Task Scheduler Fails

view story
linux-howto

http://www.linuxquestions.org – In order to use rsync I created a Bash script. It runs fine from the Cygwin 32-bit shell in Win 7 but fails when run from the Win 7 Task Scheduler. My Task Scheduler script is a simple: Code: c:\cygwin\bin\bash.exe -l -c "/home/user/rsync_Windows_Backup >> /home/user/Documents_cron.log 2>&1" The initial directory for the job is set to C:\Cygwin\bin. My Bash script is a typical rsync [options] SRC DEST and some related housekeeping. The rsync command within my rsync_Windows_Backup Bash script is: Code: /bin/time -f "\nElapse (hh:mm:ss.ss) %E" \ rsync. (HowTos)