LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 05:15 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Rep: Reputation: 35
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, 05: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: 45
Are the permissions on the scripts 755 and did you change their ownership to root?
 
Old 09-27-2004, 05:32 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Well no I haven't changed the permissions, and I as such haven't received any permission denied errors
 
Old 09-27-2004, 05: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: 45
Have you tried the full path
/usr/bin/whatever
 
Old 09-27-2004, 05:40 AM   #5
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
yes I have.
 
Old 09-27-2004, 05:40 AM   #6
qwijibow
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, 05: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: 45
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, 11: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


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


All times are GMT -5. The time now is 08:16 PM.

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