LinuxQuestions.org
Register a domain and help support LQ
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, 12: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, 12:48 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

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


chmod +x filename.sh
 
Old 08-06-2004, 12: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 04:47 PM
can echo be used for popups in shell scripts run by cron? dr_zayus69 Linux - Software 4 04-12-2005 06:30 PM
How to? Run Shell scripts jmr0311 Mandriva 2 07-14-2004 09: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 03:08 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 03:00 PM


All times are GMT -5. The time now is 03:51 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