Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2011
    Location
    Dallas
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ubuntu (LINUX) has different shebang?

    I installed UBUNTU, a LINUX OS. It seems that the shebang is not #!/usr/bin/perl
    How do I find the shebang?
    Other perl on the system don't have one, they have #! do not erase this file
    and such at the top.
    Last edited by Malform11; 05-20-2012 at 08:13 AM. Reason: title said nothing

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,051
    Thanks
    10
    Thanked 94 Times in 92 Posts
    at the command line type...

    which perl

    but it almost certainly will be #!/usr/bin/perl though it could be /usr/local/bin/perl
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Regular Coder primefalcon's Avatar
    Join Date
    Aug 2008
    Location
    /home/primefalcon/
    Posts
    678
    Thanks
    8
    Thanked 39 Times in 39 Posts
    that which btw works to find any executable that is in your PATH variable such as python or whatever.... example

    Code:
    [primefalcon@blackbeard~~]$ which which
    /usr/bin/which

  • #4
    New Coder
    Join Date
    Jan 2011
    Location
    Dallas
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Not shebang problem

    usr/bin/perl

    I assumed that the perl didn't execute because of the shebang.

    The permission is set to allow execution, and for read-write.

    I can only drop files into the tmp folder.when i right clickthe perl, i select the option to execute,but see no results.

    It doesn't return bad command or filename when i call it from the terminal, but it doesn't seem to execute my perl, even to show errors.

    The perl ran correctly at my previous web site. It is a visitor form routine.I even removed references to visitor form info and simplified for testing. It should still write to a text file and create a web page saying "your info has been sent".

    I am new to perl....
    Last edited by Malform11; 05-24-2012 at 03:23 AM. Reason: clarification

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by primefalcon View Post
    that which btw works to find any executable that is in your PATH variable such as python or whatever.... example

    Code:
    [primefalcon@blackbeard~~]$ which which
    /usr/bin/which
    Odd on mine it produces:

    Code:
    [spookster@dungeon~~]$which witch
    /usr/bin/motherinlaw
    Edit: Oh my bad wrong which.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •