Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: invoking perl scripts....

by Mr. Muskrat (Canon)
on May 01, 2002 at 17:05 UTC ( #163304=note: print w/replies, xml ) Need Help??


in reply to invoking perl scripts....

Do you have the shebang line at the top of your script?
What's a shebang line you ask? It's how the shell knows what interpreter to use to run the script. It's a #! followed by the path to perl. #!/usr/bin/perl

Try /usr/interfaces/scripts/ccs_rename.pl instead.
And that failing then /usr/bin/perl /usr/interfaces/scripts/ccs_rename.pl


Matthew Musgrove
Who says that programmers can't work in the Marketing Department?
Or is that who says that Marketing people can't program?

Replies are listed 'Best First'.
Re: Re: invoking perl scripts....
by pepik_knize (Scribe) on May 02, 2002 at 14:45 UTC
    This sounds like your problem to me, too. I would only add to carefully check that shebang line. I can't tell you how many times I've typed: !#/usr/bin/perl -wor#!/usr/bin/prel -wor#!/bin/usr/perl -w One quick way tell if this isn't the problem is if you can invoke the script from the command line.

    Let us know if you still have problems.

    Pepik

    PS /usr/bin/perl should be replaced with whatever comes up when you type which perlat the command line.

    Here's what I get:

    $ which perl /usr/bin/perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-05-17 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?