This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: scheduling jobs


> 1) can i use windows nt to access the bash job and how ...
> I tried the following and got the following errors
> 
> C:\jobs>e:\cygwin\bin\bash -c e:/cygwin/jobs/umassonline_log_rotate.sh
> date: not found
> date: not found
> date: not found
> cp: not found
> date: not found
> cp: not found
> C:\jobs>date
> 
> added #!/bin/bash to top of shell script
> C:\jobs>e:\cygwin\bin\bash -c e:/cygwin/jobs/umassonline_log_rotate.sh
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: cp: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: cp: command not found
> C:\jobs>umassonline_rotate_logs.bat
> 
> 2) if not --- i probably need cron?
> to add this to the current setup without messing up anything the boss
> installed -- do i run setup again? or something else ..

Try adding --login to the bash command. Try also -i. The roughly
equivalent command to cron in nt is at. Type in help at at the cmd.

Hope this helps.

Genneth

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]