LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   run(execute) file by name on solaris (https://www.linuxquestions.org/questions/linux-newbie-8/run-execute-file-by-name-on-solaris-828256/)

vaibhavs17 08-24-2010 02:50 PM

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?

valen_tino 08-24-2010 03:54 PM

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 ./

chrism01 08-26-2010 03:30 AM

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.