window command in bash

McGraw, Robert P. rmcgraw@purdue.edu
Tue Jul 18 13:24:00 GMT 2006


I have a window command that I want to execute in a bash script.

In my .bat file the command is 

	AgBackup.exe /notext c:\Alligate\agbackupfiles

I tried to executye this command in a bash window and the command works but
is does not seem to recognize the parameters. The "c:\alligate...." is the
path where a backup is written. In the bash script the backup file is
written in the default location.

I change the c:\Alligate.... to /cygdrive/c/Alligate/agbackupfiles but still
it wrote the backup file to the default location.

If I execute the .bat that the above command is in, it works correctly.

In a shell script what is the proper way to pass parameters to a window
program?

Thanks

Robert



_____________________________________________________________________
Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: rmcgraw@purdue.edu
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (765) 494-6055
150 N. University Street                   FAX: (419) 821-0540
West Lafayette, IN 47907-2067            


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3051 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060718/f09b295c/attachment.bin>


More information about the Cygwin mailing list