Professional Web Applications Themes

running a program - Sun Solaris

Hi, I am trying to run a file vncinstall. I have root access. I have chmodded the file vncinstall to 777. I can see the file using ls I can cat and vi the file. However, when I try to run the file using: ../vncinstall or the fully qualified path /tmp/vnc/vncinstall All I get is: ../vncinstall: not found or /tmp/vnc/vncinstall: not found What am I doing wrong? The ls listing is: total 4400 drwxrwxrwx 2 root other 671 Oct 9 13:41 . drwxrwxrwt 8 sys sys 7357 Oct 9 16:39 .. -rwxrwxrwx 1 root other 18340 Oct 9 12:18 LICENCE.TXT ...

  1. #1

    Default running a program

    Hi,
    I am trying to run a file vncinstall.
    I have root access.
    I have chmodded the file vncinstall to 777.
    I can see the file using ls
    I can cat and vi the file.
    However, when I try to run the file using:
    ../vncinstall
    or the fully qualified path
    /tmp/vnc/vncinstall
    All I get is:
    ../vncinstall: not found
    or
    /tmp/vnc/vncinstall: not found
    What am I doing wrong? The ls listing is:

    total 4400
    drwxrwxrwx 2 root other 671 Oct 9 13:41 .
    drwxrwxrwt 8 sys sys 7357 Oct 9 16:39 ..
    -rwxrwxrwx 1 root other 18340 Oct 9 12:18 LICENCE.TXT
    -rwxrwxrwx 1 root other 9020 Oct 9 12:18 README
    -rwxrwxrwx 1 root other 1755656 Oct 9 12:18 Xvnc
    -rwxrwxrwx 1 root other 6717 Oct 9 12:18 Xvnc.man
    -rwxrwxrwx 1 root other 8192 Oct 9 12:18 vncconnect
    -rwxrwxrwx 1 root other 2292 Oct 9 12:18 vncconnect.man
    -rwxrwxrwx 1 root other 2064 Oct 9 12:18 vncinstall
    -rwxrwxrwx 1 root other 14620 Oct 9 12:18 vncpasswd
    -rwxrwxrwx 1 root other 1579 Oct 9 12:18 vncpasswd.man
    -rwxrwxrwx 1 root other 14392 Oct 9 12:18 vncserver
    -rwxrwxrwx 1 root other 4358 Oct 9 12:18 vncserver.man
    -rwxrwxrwx 1 root other 321488 Oct 9 12:18 vncviewer
    -rwxrwxrwx 1 root other 15002 Oct 9 12:18 vncviewer.man


    Ian Guest

  2. #2

    Default Re: running a program

    Hi

    Ian Lee wrote: 

    Why make this stuff writeable to the world? If you're
    going to run it as root you're inviting a hack.
     

    This is a poor error message. It means "interpreter not found"
    and refers to the interpreter elected in the fist #! line
    or the script. eg, #!/usr/local/bin/perl and you have no
    such thing installed.

    gavin
     

    Gavin Guest

  3. #3

    Default Re: running a program

    >> On Thu, 9 Oct 2003 17:06:25 +0100, [/ref]

     

    755, don't want anyone else on the system being able to
    overwrite it do you?
     

    What's the first line of vncinstall. I'm guessing from
    your description that it is a shell script.

    Probably either it has an invalid shell path after the #!,
    or it came from a Windows box and has ^M at end-of-line.

    hth
    t
    Tony Guest

  4. #4

    Default Re: running a program

    Ian Lee <co.uk> wrote: 

    Assuming vncinstall is a shell script, then that means the interpreter
    listed on the top line isn't found. Make sure there's no typo or MS-DOS
    style line endings up there..

    If it's a shell script, you might run 'sh ./vncinstall'

    --
    Darren Dunham com
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Guest

  5. #5

    Default Re: running a program

    Thanks to all for helping with this. Everyone who correctly assumed the
    files had transitted a windows system were correct, and ^M was liberally
    splattered at the end of every line. I downloaded directly from the
    Internet straight onto the system, and all is well.
    I also restricted the permissions back to a reasonable level.
    Thanks to all who helped.
    This newsgroup is fantestic. I couldn't believe how quickly the resposes
    came in!!

    "Darren Dunham" <taos.com> wrote in message
    news:seghb.9021$news.prodigy.com... 
    >
    > Assuming vncinstall is a shell script, then that means the interpreter
    > listed on the top line isn't found. Make sure there's no typo or MS-DOS
    > style line endings up there..
    >
    > If it's a shell script, you might run 'sh ./vncinstall'
    >
    > --
    > Darren Dunham com
    > Unix System Administrator Taos - The SysAdmin Company
    > Got some Dr Pepper? San Francisco, CA bay area
    > < This line left intentionally blank to confuse you. >[/ref]


    Ian Guest

Similar Threads

  1. Running another program in current program
    By Durai in forum PERL Beginners
    Replies: 5
    Last Post: April 29th, 01:25 PM
  2. Who is running my program?
    By Tim in forum PERL Beginners
    Replies: 2
    Last Post: April 12th, 02:48 PM
  3. Running a DOS based program on XP
    By Ray in forum Windows XP/2000/ME
    Replies: 0
    Last Post: July 24th, 05:53 AM
  4. unknown program running
    By Mike in forum Windows Networking
    Replies: 0
    Last Post: July 21st, 02:14 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139