run(execute) file by name on solaris
Hi Team,
two solaris machines with same versions. I am able to execute script just by giving filename. same is not happening on other machine. Ineed to give explicitly ./filename or . ./filename. I could not understand why is thi difference. I checked that there are some scripts on solaris 10 has some filename without './'. it is being executed very nicely. Only filename is given.. it is running perfectly. same is not running when i write the same script on solaris 10 but different machine. I need to write explicitly ./ Please help. Why is the difference? |
Perhaps the PATH variable may have been set for your script or you may have an alias created for the script which does not require the ./
|
As above, it's almost definitely a difference in the PATH variable on each system. Just
echo $PATH on each and compare the results. |
All times are GMT -5. The time now is 07:45 PM. |