![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Include PERL script with in the unix shell script | ganapati | UNIX for Dummies Questions & Answers | 1 | 04-29-2008 09:18 AM |
| help me in sending parameters from sqlplus script to unix shell script | Hara | Shell Programming and Scripting | 2 | 01-29-2008 12:31 PM |
| Shell Script: want to insert values in database when update script runs | ring | Shell Programming and Scripting | 1 | 10-25-2007 12:06 AM |
| check in unix shell script so that no one is able to run the script manually | adi_bang76 | Shell Programming and Scripting | 1 | 11-16-2006 07:43 AM |
| returning to the parent shell after invoking a script within a script | gurukottur | Shell Programming and Scripting | 5 | 09-26-2006 04:05 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Exexuting a script
I have a .sh script on two servers. To run the script on one of them, I can simply type: scriptname
On the other script I have to type ./scriptname.sh to run it. Why is this? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
echo $PATH
Copy that script to a directory which is mentioned in PATH evn variable. Preferably make a directory, /home/username/bin and add this directory path to PATH env variable and you can run without giving its full path. Regards, Tayyab |
|
#3
|
|||
|
|||
|
Its better you run the scripts by using ./scriptname format , it helps in differentiating between scripts and commands.
|
|||
| Google The UNIX and Linux Forums |