Find the answer to your Linux question:
Results 1 to 5 of 5
I have downloaded a software tool on my suse guest. It is set to 777 and I have chown&chgrp it. I get into root and go to the dir where ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139

    trouble executing a command

    I have downloaded a software tool on my suse guest.
    It is set to 777 and I have chown&chgrp it.
    I get into root and go to the dir where the script is, but when I execute it
    I get command not found.
    I'm confused and don't kwon what else to change or where to look.
    Any help is greatly appreciated
    thanks
    Mace

  2. #2
    Linux Newbie harner's Avatar
    Join Date
    Jun 2004
    Location
    PA, USA
    Posts
    209
    Quote Originally Posted by mace View Post
    I have downloaded a software tool on my suse guest.
    It is set to 777 and I have chown&chgrp it.
    I get into root and go to the dir where the script is, but when I execute it
    I get command not found.
    I'm confused and don't kwon what else to change or where to look.
    Any help is greatly appreciated
    thanks
    Mace
    How are you executing the script? Try typing:
    Code:
    ./scriptname
    I praise Webmin and PuTTy!
    Registered Linux User: 439431

  3. #3
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139
    DOH .. I hate when I do stupid stuff like that
    I did it but I'm still haveing a problem.
    I now get:
    bad interpreter: No such file or directory
    thanks
    Mace

  4. #4
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    139
    I searched the forum and found the soloution
    perl -i -pe's/\r$//;'

    Now I need to find a perl book and figure out what the heck it is saying.
    thx
    Mace

  5. #5
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    A few things to check:
    - are you using bash and is the script setup to use bash (does the shebang line point to bash or the shell you are using)?
    - is the file in unix format? the file may be in dos format and you can use the 'dos2unix' tool to convert it to a unix format file

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

Posting Permissions

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