This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: VBScript shebang?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: SJ <simon dot jackson at didata dot com dot au>
- Cc: cygwin at cygwin dot com
- Date: Wed, 23 Jun 2004 18:12:41 -0400 (EDT)
- Subject: Re: VBScript shebang?
- References: <cb7luo$lbg$1@sea.gmane.org>
- Reply-to: cygwin at cygwin dot com
On Tue, 22 Jun 2004, SJ wrote:
> Hello,
>
> From time to time, I like use a Windows script file (VBS, JS) with
> CScript/WSH. Is it possible to execute a script as a command from the
> Cygwin shell without having to specify the 'interpreter' (CScript)? This
> would then operate like a Perl or BASH script.
>
> I've tried using a 'shebang' approach like "#!<path>cscript" but the
> CScript interpreter chokes. If I comment the shebang I get an error from
> the shell.
>
> Thanks
> Simon
You need to make sure the interpreter gets the Win32 path to its argument,
not POSIX. Search the archives for "ActivePerl shebang".
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/