This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]