LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-10-2001, 04:42 PM   #1
chris
Member
 
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.

Thanks!

Last edited by chris; 12-10-2001 at 04:54 PM.
 
Old 12-10-2001, 05:15 PM   #2
zhenwu
Member
 
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, 05:20 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
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?
 
  


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 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 07:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM
issue with shell script chupacabra Linux - General 3 10-18-2002 09:12 PM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration