[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Newbie question about Perl programs



On Tue March 21 2006 11:13 am, Ian Chesal wrote:
> > > Here's an example of a submit file that doesn't work:
> > >
> > > universe = vanilla
> > > executable = HeyNow.pl
> >
> > Have you got
> > #!/usr/local/bin/perl
>
> This won't work on Windows under the cmd shell. The Windows cmd shell
> finds executables and their associated execution programs based solely
> on file extensions not on shebang lines at the head of files (that's a
> feature found in csh, bash, zsh, etc.). You'll either need to make the
> .pl extension an executable and associate it with your local perl
> interpreter or convert the perl script to a .bat file with pl2bat.

Actually, this isn't quite correct.  In the UNIX world, it's the *kernel* that 
handles the "shebang" lines, and does the magic, not the shell.  The end 
result, however, is that Windows doesn't "understand" the #! constructs.

-Nick

-- 
           <<< The answer is out there, Neo. >>>
 /`-_    Nicholas R. LeRoy               The Condor Project
{     }/ http://www.cs.wisc.edu/~nleroy  http://www.cs.wisc.edu/condor
 \    /  nleroy@xxxxxxxxxxx              The University of Wisconsin
 |_*_|   608-265-5761                    Department of Computer Sciences