X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: window command in bash Date: Tue, 18 Jul 2006 09:06:39 -0400 Content-Type: multipart/signed; boundary="----=_NextPart_000_0050_01C6AA49.7A776F60"; protocol="application/x-pkcs7-signature"; micalg=SHA1 Message-ID: <03D3B32F0D0D024791C1EE97D087E90907927654@EXCH01.purdue.lcl> From: "McGraw, Robert P." To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ------=_NextPart_000_0050_01C6AA49.7A776F60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 AT purdue DOT 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 ------=_NextPart_000_0050_01C6AA49.7A776F60 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIII3jCCAmYwggHPoAMCAQICAw/zMzANBgkqhkiG9w0BAQQFADBiMQsw CQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg THRkLjEsMCo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