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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-27-2004, 04:15 AM
|
#1
|
|
Member
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 484
Rep:
|
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.
|
|
|
|
09-27-2004, 04:28 AM
|
#2
|
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Are the permissions on the scripts 755 and did you change their ownership to root?
|
|
|
|
09-27-2004, 04:32 AM
|
#3
|
|
Member
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 484
Original Poster
Rep:
|
Well no I haven't changed the permissions, and I as such haven't received any permission denied errors
|
|
|
|
09-27-2004, 04:36 AM
|
#4
|
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Have you tried the full path
/usr/bin/whatever
|
|
|
|
09-27-2004, 04:40 AM
|
#5
|
|
Member
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 484
Original Poster
Rep:
|
yes I have.
|
|
|
|
09-27-2004, 04:40 AM
|
#6
|
|
Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
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
|
|
|
|
09-27-2004, 04:48 AM
|
#7
|
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
corbis_demon,
You have to help people help you. We can't see your screen, the commands you type or the output.
|
|
|
|
09-27-2004, 10:41 AM
|
#8
|
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
Were the scripts downloaded using a windows machine? If so, try running them through dos2unix.
Have you tried "sh /usr/bin/thescript"?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|