delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/01/18:08:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Originating-IP: [216.95.197.68]
From: "Glenn Mabbutt" <morebeans AT hotmail DOT com>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: cygrunsrv and .bat files ??
Date: Wed, 01 Aug 2001 17:08:24 -0500
Mime-Version: 1.0
Message-ID: <F92QvAauNjVuMhvqgSt0000c2cd@hotmail.com>
X-OriginalArrivalTime: 01 Aug 2001 22:08:24.0330 (UTC) FILETIME=[7BAC56A0:01C11AD6]

OK, I've tried it again, this time using the syntax:

cygrunsrv -I VncControl -p c:\winnt\system32\cmd.exe -a "/c c:\vnc\vncv.bat"

Still no go - same scenario as before, it appears to install, but hangs and 
ultimately fails on start.

Also, just to run down some options, I found a bat2exe prog, which 
ironically only turns the batch file into a .com file, and then I found a 
com2exe prog, which takes my .com file and makes it into an executable 
(vncv.exe).  Executes fine stand-alone from the command prompt, but 
cygrunsrv is still having difficulties.

I'm beginning to think perhaps there's something else bolloxed in my setup.  
One of the examples in the readme related to passing a CYGWIN env. variable 
- although the machine I'm testing on already has that set, is this 
something I need to look at??

Next I'm going to try this with "normal" executables just to see if they're 
OK on my system...

Thanks,
Glenn

>From: fred AT ontosys DOT com
>To: Glenn Mabbutt <morebeans AT hotmail DOT com>
>CC: cygwin AT sources DOT redhat DOT com
>Subject: Re: cygrunsrv and .bat files ??
>Date: Wed, 1 Aug 2001 14:55:50 -0500
>
>cygrunsrv executes the controlled program via the execv() system call,
>which (AFAIK) doesn't understand win32 batch files.  You might try
>configuring your service to run cmd.exe as the program and give it the
>name of your batch file as an argument, so that cygrunsrv executes
>cmd.exe which then runs the batch file.
>
>On Wed, Aug 01, 2001 at 02:37:36PM -0500, Glenn Mabbutt wrote:
> > Hi. I've got a 2 line batch file that I'm trying to run as a service on
> > NT/2000 (starts a secure tunnel client which spawns vncviewer in listen
> > mode, then kills vncviewer process after secure tunnel client exits).
>
>--
>Fred Yankowski           fred AT OntoSys DOT com      tel: +1.630.879.1312
>Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
>OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA
>
>--
>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/
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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