Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-26-2002, 11:47 PM   #1
LQ Newbie
Registered: Sep 2002
Posts: 2

Rep: Reputation: 0
how to run a shell script in Linux


I have downloaded script in my Linux . i dont khow
how to run that script and make it working.

also i have a basic doubt , what is script . why do we need scripts
to run certain programs

Old 09-27-2002, 12:16 AM   #2
LQ Newbie
Registered: Sep 2002
Location: australia
Posts: 6

Rep: Reputation: 0
make sure the script has execute permision
chmod u+x <scriptname>
then type ./<scriptname> in the directory the script is in
Old 09-27-2002, 02:19 PM   #3
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
In my experience, i've used "sh ./<>" A shell script is basically a text file that has a bunch of commands in it. like this srcipt:
cd /usr/src
ls -l

will change to /usr/src/ and then do a ls -l.


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 shell script on cron varunbihani Linux - Newbie 5 07-08-2005 02:50 AM
How to run SHELL script pito Linux - Newbie 4 12-17-2004 04:05 AM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 07:49 AM
how do i run shell script? krt47 Linux - Newbie 4 08-02-2004 10:29 AM
how to run a shell script oasisbhrnw99 Linux - Newbie 1 05-05-2004 02:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration