LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2004, 04:15 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
bash script error


Hi,
I downloaded a few bash scripts and installed them in /usr/bin.But when I try to invoke them,I get an error saying no such command et. al.Why is it so. I had a perl script when I tried to run it , it threw up the error.What should I do.It would be really daft to ask whether /usr/bin is in the PATH or not.
Please advise.
 
Old 09-27-2004, 04:28 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Are the permissions on the scripts 755 and did you change their ownership to root?
 
Old 09-27-2004, 04:32 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Original Poster
Rep: Reputation: 38
Well no I haven't changed the permissions, and I as such haven't received any permission denied errors
 
Old 09-27-2004, 04:36 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Have you tried the full path
/usr/bin/whatever
 
Old 09-27-2004, 04:40 AM   #5
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Original Poster
Rep: Reputation: 38
yes I have.
 
Old 09-27-2004, 04:40 AM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
its not a permission denied error in the usual sence...

the permissions alos controll wether or not a file can be executed..

755 makes a file executable to all users, but writable only to the owner.

Code:
chown root /usr/bin/thescript
chmod 755 /usr/bin/thescript
 
Old 09-27-2004, 04:48 AM   #7
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
corbis_demon,

You have to help people help you. We can't see your screen, the commands you type or the output.
 
Old 09-27-2004, 10:41 AM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Were the scripts downloaded using a windows machine? If so, try running them through dos2unix.

Have you tried "sh /usr/bin/thescript"?
 
  


Reply



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
run-parts gives error on bash script ChoKamir Programming 9 04-11-2017 07:18 AM
Bash Script and Loop error handling Kedelfor Programming 5 05-22-2005 02:22 PM
bash script error near 'else' ? nutthick Linux - Newbie 5 01-23-2005 03:41 PM
bash script problem...or user error? Jalalabee Programming 2 09-10-2003 06:18 AM
BASH script error in RH 7.3 ..whaaaa??? Pauly Linux - Software 7 12-13-2002 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 AM.

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