Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-10-2001, 03:42 PM   #1
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66

Rep: Reputation: 15
Plesae disregard this post... my mistake

Hi guys and gals,

Here's the situation at hand, I was working on a shell script to basically backup files from an smb share and it was working just great. I then wanted to mv it to /usr/bin in order to be able to execute it from anywhere. However when I did that something strange happened. I wasn't able to run the script as it would say "no such file or directory". The file was in fact there and it was chmoded u+x and yet still this message. I even redid the script and saved it elsewhere and still the error. I really don't know what happened but I would really like some feedback from anyone who may know what the problem is.


Last edited by chris; 12-10-2001 at 03:54 PM.
Old 12-10-2001, 04:15 PM   #2
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
This is likely not the answer, but have you tried (as root) to

updatedb ?

Give it a try.
Old 12-10-2001, 04:20 PM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
updatedb will certainly have no effect, that's just used for locates etc... not for exectuing programs.

are you sure your rights are still ok? what does 'ls -l /usr/bin/filename' say? does the filename autocomplete with tab?

It might be the case of the 'file not found' coming from inside the code, not the file itself. does it use and relative paths or such like?


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script inside shell script treotan Linux - General 4 02-19-2009 06:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 03:00 PM
issue with shell script chupacabra Linux - General 3 10-18-2002 08:12 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 AM.

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