| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| content-class: | urn:content-classes:message |
| Subject: | RE: scheduling jobs |
| MIME-Version: | 1.0 |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.4712.0 |
| Date: | Wed, 23 Oct 2002 21:24:30 +0100 |
| Message-ID: | <C411A4A355498B4AB3652085E57A92596D8326@EXCHANGE.wincoll.ac.uk> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| 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> |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g9NKRCc00901 |
> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |