Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a script

Status
Not open for further replies.

SotonStu

Programmer
May 7, 2003
33
0
0
GB
How can i actually run a shell script that i have made?
 
Hi:

man chmod

You have give the file execute permissions. Here's a way:

chmod 755 yourscript

Ed
 
once permissions are set (alternatively chmod +x myscript) run it from where ever you are :
/path/to/myscript
or from the same directory :
./myscript


______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top