From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21098 invoked from network); 15 Feb 1999 15:24:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Feb 1999 15:24:41 -0000 Received: (qmail 24122 invoked by alias); 15 Feb 1999 15:22:29 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2155 Received: (qmail 24097 invoked from network); 15 Feb 1999 15:22:27 -0000 >Received: from marge by delcam.com; Mon, 15 Feb 99 13:30:03 GMT Date: Mon, 15 Feb 1999 08:37:07 -0500 (EST) From: Chavdar Ivanov X-Sender: ci@marge To: "Trinh, Timothy" Cc: "'zsh-users@math.gatech.edu'" Subject: RE: Problem running zsh on WinNT 4.0 In-Reply-To: <3AABFE76426DD211AC3000805FFE11768A7131@hq-msg04.nwest.mccaw.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Friday Trinh, Timothy gave us enlightenment about RE: Problem running...: > Hello ALL, > > I really appreciated all the suggestion I have received regarding setting up > the zsh program set up on WinNT40. > I am able to start up the zsh program and have it automatically source my > startup files. Even though my zsh program > is starting up properly on my WinNT4.0, I am not able to run shell script > like I do on Unix. When I do an ls -l on the shell script, > do not see any x permissions on the shell script. When I chmod a+x script name>, I still do not see the x permissions on the > shell script. Is there a particular way of executing the shell script via > the zsh program on WinNT4.0? Do I need to name the shell script in a > certain way in order for it to execute? I have tried including the > following line at the beginning of the shell script: > > #!c:/bin/zsh/zhs.exe > > Executing the shell script with the above line in it, I get the following > error: zsh: exec format error: . > > Any suggestions and comments are greatly appreciated. > > Thanks, > Timothy > > PS: Larry S.: Are there any other arguments I should be aware of in running > the zsh program? > > ---------- > Use Explorer to associate files with extension, i.e., .zsh, with the zsh. I have two actions associated with it - Edit and Run; Edit invokes pfe32 on the script, Run just runs it ( you point to your current zsh.exe location for this to work ). >>From CMD you can run zsh scripts by specifying the extension: C:\ > script.zsh The trouble now is you apparently can not pass any parameters to the script, therefore you might resolve to using 'read' for them in the script itself. Any ideas here? ---------------------------------------------------------------- Chavdar Ivanov | Talbot Way, Small Heath Business Park Delcam UK Limited | Birmingham B10 0HJ, United Kingdom Customer Support Dept. | (+44)121-6831014 ---------------------------------------------------------------- Keep Canada beautiful. Swallow your beer cans. ---------------------------------------------------------------- Monday, February 15, 1999