From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25877 invoked from network); 16 Feb 1999 00:42:17 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Feb 1999 00:42:17 -0000 Received: (qmail 6842 invoked by alias); 16 Feb 1999 00:41:07 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2161 Received: (qmail 6835 invoked from network); 16 Feb 1999 00:41:05 -0000 Message-ID: From: Amol Deshpande To: "Trinh, Timothy" , "'Chavdar Ivanov'" Cc: "'zsh-users@math.gatech.edu'" Subject: RE: Problem running zsh on WinNT 4.0 Date: Mon, 15 Feb 1999 16:40:30 -0800 X-Mailer: Internet Mail Service (5.5.2524.0) as long as the #! path at the top of the script is correct, there is no need to create associations to run the script from within zsh/tcsh. Both these shells do "hashbang emulation" where they will find the program to be executed and feed it the script. > ---------- > From: Chavdar Ivanov[SMTP:ci@delcam.com] > Sent: Monday, February 15, 1999 5:37 AM > To: Trinh, Timothy > Cc: 'zsh-users@math.gatech.edu' > Subject: RE: Problem running zsh on WinNT 4.0 > > 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 > >