LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2006, 09:55 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Rep: Reputation: 60
very confusing


why is that when I am in a KDE session and I run and xterm session and use the command without the path:

xllvnc -rfbauth /home/dada/.vnc/passwd -many &

it executes fine. The file x11vnc is owned by root.

but if I run the same command from the path of the file I get an error message that is can find the file like:

/usr/local/sbin/xllvnc -rfbauth /home/dada/.vnc/passwd -many &

no file or directory

What I am trying to do is create a script that will execute this command from clicking an icon. Or better using SUSE 10 /etc/init.d/boot.local. Everytime I do that it fails saying that it can find the command either way I try and use it. What the heck is going on?
 
Old 08-06-2006, 10:03 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what's the output of:
Code:
whereis xllvnc
and:
Code:
ls -l /usr/local/sbin/xllvnc

Last edited by win32sux; 08-06-2006 at 10:05 PM.
 
Old 08-07-2006, 11:49 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
Quote:
what's the output of:
whereis

/usr/local/sbin/xllvnc - correct path

and

ls -l /usr/local/sbin/xllvnc - rwx,rx,x

owned by root and root group
 
Old 08-07-2006, 12:35 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by metallica1973
whereis

/usr/local/sbin/xllvnc - correct path

and

ls -l /usr/local/sbin/xllvnc - rwx,rx,x

owned by root and root group
it would be great if you could copy/paste the output into here, so that we can see *exactly* what you get... i mean, for example, that "ls -l" output you posted doesn't really make any sense at all...

run the commands as your non-root user (dada or whatever)... oh, and let's see you echo your path also, please:
Code:
echo $PATH
 
Old 08-07-2006, 04:48 PM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60
Here is the results from that machine

ls -l /usr/local/bin/x11vnc

-rwxr-xr-x 1 root root 2434946 2006-07-23 18:31 /usr/local/bin/x11vnc

echo $PATH

/home/cozyed46/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin

whereis

x11vnc: /usr/local/bin/x11vnc

there are the results

what gives?
 
Old 08-07-2006, 07:21 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by metallica1973
ls -l /usr/local/bin/x11vnc

-rwxr-xr-x 1 root root 2434946 2006-07-23 18:31 /usr/local/bin/x11vnc

echo $PATH

/home/cozyed46/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:
/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:
/usr/lib/mit/sbin:/usr/lib/qt3/bin

whereis

x11vnc: /usr/local/bin/x11vnc
could you confirm that you are indeed typing the right command name?? because this is completely different than what's in your OP:
Quote:
Originally Posted by metallica1973
why is that when I am in a KDE session and I run and xterm session and use the command without the path:

xllvnc -rfbauth /home/dada/.vnc/passwd -many &

it executes fine. The file x11vnc is owned by root.

but if I run the same command from the path of the file I get an error message that is can find the file like:

/usr/local/sbin/xllvnc -rfbauth /home/dada/.vnc/passwd -many &

no file or directory
so the error you are getting there makes perfect sense...

also, from your "ls -l" i can see there's a link to the file somewhere... which is the link??
Code:
find / -type l -exec ls -l {} \; | grep x11vnc
PS: please use code tags when you post output... that echo $PATH output of yours is messing-up the page layout...

Last edited by win32sux; 08-07-2006 at 07:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
this is so confusing!! theguitarness Linux - Newbie 5 03-07-2006 10:53 PM
What is confusing my Intel536ep? bobzilla Debian 1 11-24-2005 07:34 PM
so confusing c12ayon Programming 5 10-26-2003 11:52 PM
Confusing useradd Arenba Linux - Newbie 3 09-23-2003 06:22 AM
Very confusing rm Luc Linux - Newbie 3 11-04-2002 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration