From: Ian Marlier
Date: Sat, 15 Oct 2005 12:07:03 -0400 To: Greg Wallace , Conversation: [SLE] New wrinkle in executing commands? Subject: Re: [SLE] New wrinkle in executing commands? From: Greg Wallace
Date: Fri, 14 Oct 2005 23:52:42 -0800 To: Subject: [SLE] New wrinkle in executing commands? Something has changed over the last few releases about how you execute commands. Can someone enlighten me? I have an executable file in /root/bin. /root/bin is the first entry in my $PATH environment variable. If I enter this command as --
Mycommand
I get --
Line 4: Desktop: command not found
If I do
cd bin ./Mycommand
it works. Can you no longer simply enter an executable's name from a shell and have it search you PATH, find the file, and execute it?
Hrm...you should be able to...
This is a shell launched from X?
Have you confirmed the path? (`echo $PATH` will show it to you -- make sure it is set the way you want it to be.)
Should have read this more carefully. Your $PATH is fine, something is screwy with the script. Any chance you can post it/part of it? You might also try adding this above line 4: echo "Current directory: `pwd`" Since that'll tell you the directory your script is running in. I suspect that the pwd of the script is /home/<user>/bin...