Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset="US-Ascii" X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Wed, 23 Oct 2002 21:24:30 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Gen Zhang" To: Cc: "Karen McLaughlin" Content-Transfer-Encoding: 8bit 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/