http://qs321.pair.com?node_id=163304


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