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/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,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/