Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Does this look like Perl code?
by ikegami (Patriarch) on Jul 17, 2006 at 18:56 UTC
    No. It's some form of shell script. It was probably designed for the Bourne shell (sh) or for bash. I think it will run in both.
      Thank you very much - It seems kind of silly for me to have asked the question.
Re: Does this look like Perl code?
by jcoxen (Deacon) on Jul 17, 2006 at 18:58 UTC
    Looks like a shell script to me - Bourne or BASH probably.
    Jack
Re: Does this look like Perl code?
by ahmad (Hermit) on Jul 17, 2006 at 19:16 UTC

    no , it's not perl code ... it's bash code

Re: Does this look like Perl code?
by lukeyboy1 (Beadle) on Jul 18, 2006 at 14:26 UTC
    Yup. It looks like it could do with a #!/bin/sh at the top of it. A bit bad of the original author that it doesn't have that already, mind you.....! Find them, and kick some a$$! :)

      Note that you don’t need the shebang if it’s just #!/bin/sh – the kernel will invoke the shell on files that neither are binary objects nor have a shebang.

      So that would be a clue – if you get a script that gets invoked directly as an executable (like, say, a CGI script) instead of being passed to an interpreter, and it doesn’t have a shebang, then it’s always a /bin/sh script.

      Makeshifts last the longest.