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 Message-ID: <3500515B75D9D311948800508BA37955950899@EX-LONDON> From: Vince Hoffman To: "'Harig, Mark A.'" , Karen McLaughlin , cygwin AT cygwin DOT com Subject: RE: scheduling jobs Date: Wed, 23 Oct 2002 23:03:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" it could be worth your while adding \bin to the system environment variable Path, and there is also the possibility that your boss only installed it for himself not all users (this affects where in the registry the mounts are stored I believe and thus if all users (and the system) or only one user can see them.) Although the only thing that makes me think that could be the case is the lack of cygwin icon on the desktop, and your boss could have just said no to that. -----Original Message----- From: Harig, Mark A. [mailto:maharig AT idirect DOT net] Sent: 23 October 2002 21:32 To: Karen McLaughlin; cygwin AT cygwin DOT com Subject: RE: scheduling jobs You're going to have to work through this in stages: 1. You need to get the bash shell working (yes, things can be done without it, but something basic is not set up properly at this point). 2. Yes, cron can be made to work just as you have been using it in the unix environment. You'll want to get basic cron functionality (ugh, i used that word) in place before you attempt to get it to run scripts, otherwise you end up trying to debug two problems at the same time. You should be able to find the 'Cygwin Bash Shell' (that is, bash) program in the 'Start' | 'Programs' | 'Cygwin' menu. (Normally, setup will also put an icon on your desktop also. Why it has not makes me wonder about what happened when setup.exe was run.) Once you have that running, you'll want to sanity check on some basics, such as: $ echo $HOME $ uname -r $ id $ echo $CYGWIN > -----Original Message----- > From: Karen McLaughlin [mailto:k DOT mclaughlin AT umassp DOT edu] > Sent: Wednesday, October 23, 2002 4:20 PM > To: cygwin AT cygwin DOT com > Subject: scheduling jobs > > > 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 > -- 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/ -- 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/