delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/23/16:20:45

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
Message-ID: <3DB70471.C19BE491@umassp.edu>
Date: Wed, 23 Oct 2002 16:20:01 -0400
From: "Karen McLaughlin" <k DOT mclaughlin AT umassp DOT edu>
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: scheduling jobs

--------------46C0F890E210831AE6F213D9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I briefly went through the archives and apologize if this is an
extremely elementary question but i seem to have a brain cramp here ....

My boss installed cygwin on a win 2000 machine

I am having trouble finding the window that cygwin and nt talk to each
other through ...

what i basically have done is written a simple bash script --- i am now
trying to schedule it

from the setup log it appears boss has not installed cron ...
he thinks i should be able to schedule a batch job as follows that calls
the bash shell script --- it doesnt seem to work (I am fairly unix savvy
i am not terribly nt savvy but i have been in the IT field a number of
year) -- i had also had that thought last night because i thought of
COURSE the boss knows what he is talking about and if he says i can use
windows at command to schedule something in cygwin it must be the way
....

so my question(s) are:

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 ..

3) how do i keep cron up in the windows environment? ie --- do i need to
run inetd as a service or cron as a service??? can you point me toward
how to do this?

I have perused various parts of the documentations and mailing list
archives.
I can't seem to find an answer and since i wasted a lot of time trying
to get cronolog (log rotation program) to work i am way behind on
getting this shell script running (it is a log rotation script) ...
Thanks in advance for any help on this ...

Karen

--------------46C0F890E210831AE6F213D9
Content-Type: text/x-vcard; charset=us-ascii;
 name="kmclaughlin.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Karen McLaughlin
Content-Disposition: attachment;
 filename="kmclaughlin.vcf"

begin:vcard 
n:McLaughlin;Karen
tel;work:413-587-2147
x-mozilla-html:FALSE
org:Infrastructure Services;Information Technology Services
adr:;;;;;;
version:2.1
email;internet:k DOT mclaughlin AT umassp DOT edu
title:Network Specialist
fn:Karen McLaughlin
end:vcard


--------------46C0F890E210831AE6F213D9
Content-Type: text/plain; charset=us-ascii

--
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/
--------------46C0F890E210831AE6F213D9--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019