This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: scheduling jobs
- From: "Gen Zhang" <g_zhang at wincoll dot ac dot uk>
- To: <cygwin at cygwin dot com>
- Cc: "Karen McLaughlin" <k dot mclaughlin at umassp dot edu>
- Date: Wed, 23 Oct 2002 21:24:30 +0100
- Subject: 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/