![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Put a \ in front of special characters in SED | tugger | Shell Programming and Scripting | 9 | 10-17-2007 04:12 AM |
| Running exe's from front end | Sinbad | High Level Programming | 0 | 09-13-2004 06:33 AM |
| Front end on Unix | shibz | UNIX for Advanced & Expert Users | 4 | 11-17-2001 08:37 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
run script with ./ in front of name
on unix AIX5.3, we run a scripts by entering the
script name on the command line and sometimes we get a not found error and then we put ./ in front on the name and it runs. Why? |
| Forum Sponsor | ||
|
|
|
|||
|
rig,
when u run script by just entering the script name, the shell finds the script in paths/location as defined in the $PATH variable. The reason why the script failed is because your current directory is not defined in the PATh varibale. But when you run script as ./script_name then the shell gets the location of the script as ' . ' ( i.e. yuor current directory ) |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|