delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/24/11:42:35

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
Subject: RE: scheduling jobs
MIME-Version: 1.0
Date: Thu, 24 Oct 2002 11:42:16 -0400
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E10AB01@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: "Karen McLaughlin" <k DOT mclaughlin AT umassp DOT edu>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9OFgYU11154


> -----Original Message-----
> From: Karen McLaughlin [mailto:k DOT mclaughlin AT umassp DOT edu]
> Sent: Wednesday, October 23, 2002 7:10 PM
> To: Harig, Mark A.; Karen McLaughlin; cygwin AT cygwin DOT com
> Subject: RE: scheduling jobs
> 
> 
> i think i used the wrong term when i said window ...
> bash is working ... i can use a dos window --- and get in --- not a 
> problem there --
> i dont know where system path on nt is done -- since dos does 
> seem to know
> about bash --- i think this has been done (i can look this 
> one up in nt
> help)
> 

Try: Start->Settings->Control Panel->System applet

In the System applet, click on the 'Advanced' tab, then on the
Environment Variables button.  You should find 'Path' listed 
in the 'System variables' scroll list.

> i guess what i am asking is can i use the nt at command to 
> schedule the
> bash script ...
> 
> what i did is made a .bat file --- in that file it says
> <path to cygwin bin>bash -c <full path to bash script>
> 
> i just tried running the bat manually to see if it ran my 
> bash script ---
> figured if it did that i would then use at to schedule it ...
> 

That is the correct approach, i.e., see if you can perform
an action (in your case, running a bash script at a DOS prompt)
manually before attempting to automate it.

At your DOS prompt, enter the command 'path' to see the value
of the PATH environment variable.  After you set the value using
the System applet, above, you should see that the directory that
contains your Cygwin programs precedes the directory that contains
the assorted Windows programs.

> so do i want/need cron or is the above scenario ok???

The above is OK, but at some point you will likely want to simplify
your life by being "all unix, all the time".  When that happens, you'll
want to jump the hurdle of installing cron, setting up the cron service,
setting up smtp (for mail from cron), and creating a cron job.

> 
> I think i tried either bash -i --login or both and i believe 
> what happened
> then is that it got into bash --- and then didnt know what to 
> do ... i will
> double check that and let you know for sure but i know i 
> tried various ways
> to try to get these two talking
> 
> so dos does talk to my cygwin --- sorry for the 
> misunderstanding --- the
> question is more what do i use to schedule --- and do i need 
> to run cron as
> a service or somethin as a service if i do use cron ...
> 
> the cygwin icon is on the start menu --- i cant verify the 
> desktop right
> now but i will guess yes -- can verify later ... and yes if i 
> click it it
> launches a dos window and puts me in cygwin (bash) shell ...
> 
> thanks for your time and help ....
> 
> 
> 
> 
> 

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

- Raw text -


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