LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-06-2004, 01:45 PM   #1
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Rep: Reputation: 15
Can't run shell scripts I write?


Writing shell scripts as root. I save and try to execute one and it gives the following error

sh: ./shell: Permission denied
 
Old 08-06-2004, 01:48 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
you need to make it excutable.


chmod +x filename.sh
 
Old 08-06-2004, 01:50 PM   #3
jayseye
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware
Posts: 13

Rep: Reputation: 0
Have you made the script executable, like this?:

chmod a+x scriptname
 
  


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
Can't run shell scripts even as root nitrousoxide82 Linux - Newbie 2 04-24-2005 05:47 PM
can echo be used for popups in shell scripts run by cron? dr_zayus69 Linux - Software 4 04-12-2005 07:30 PM
How to? Run Shell scripts jmr0311 Mandriva 2 07-14-2004 10:24 PM
how can i run a shell scripts (or a number of commands )when a user logs in to a linu rddreamz Programming 4 05-20-2004 04:08 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM


All times are GMT -5. The time now is 01:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration