This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Alternative to Cron Jobs with cygrunserv
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 30 Aug 2005 18:32:27 +0100
- Subject: RE: Alternative to Cron Jobs with cygrunserv
----Original Message----
>From: M Maki
>Sent: 29 August 2005 17:34
> I then created a Windows batch file that pipes the command I
> want to run to the cygwin.bat file that starts cygwin.
>
> For example:
>
> @echo on
> echo ./rsyncbkp.sh | C:\cygwin\cygwin.bat
> echo exit | C:\cygwin\cygwin.bat
The second 'echo' command is completely superfluous. The first cygwin
invocation exits as soon as the command has completed. Even if it didn't,
piping 'exit' into the batch file again is only going to start a new
invocation of cygwin, you can't talk to an existing program that way.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/