•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 391,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,615 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 561 | Replies: 3 | Solved
![]() |
chmod u+x shellProgramming
To make it executable./shellProgramming
To run it. If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
•
•
Join Date: Oct 2007
Posts: 256
Reputation:
Rep Power: 1
Solved Threads: 26
Hey there,
You can also place it in a directory in your PATH, after you make it executable, so you can run it from anywhere.
I dont' recommend adding a dot to your PATH, but just do
echo $PATH
and copy your script into one of those directories and you can just run it by calling its name wherever you are on the filesystem
, Mike
You can also place it in a directory in your PATH, after you make it executable, so you can run it from anywhere.
I dont' recommend adding a dot to your PATH, but just do
echo $PATH
and copy your script into one of those directories and you can just run it by calling its name wherever you are on the filesystem

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
Similar Threads
- run program and rename file script help please (Shell Scripting)
- shell script as a daemon (Shell Scripting)
- Shell Script Issue (Shell Scripting)
- help with shell script padding files with spaces (Shell Scripting)
- Linux Shell Script needs help writing program (Shell Scripting)
- Problem with variables in Windows shell script (Windows NT / 2000 / XP / 2003)
- Using find in a bash shell script (Shell Scripting)
- How to su properly in a shell script (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: Script question
- Next Thread: Example BASh assignments



Linear Mode