I need to run my shell script just by typing its name rather than doing sh <scrpit name>. I think its something to do with my profile and path.
echo $path is giving me output as follows:
sr/games /opt/gnome/bin /opt/kde3/bin /usr/bin/X11 /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/lib/mit/bin /usr/lib/mit/sbin
where : is missing.
could you help sort out this problem.
thanks
echo $path
Moderator: drgrussell
-
- Site Admin
- Posts: 426
- Joined: Sat Feb 12, 2005 8:57 pm
- Are you a robot or a human?: Human
Edit your path in your .login file. The actual name depends on your shell. However, it is likely to be .bash_profile
In there you need to add "." to the path. Add to the end of the PATH line ":."
Log out and back in again to gain the new setting.
Remember to make your shell program executable by using
chmod +x theprogramname
In there you need to add "." to the path. Add to the end of the PATH line ":."
Log out and back in again to gain the new setting.
Remember to make your shell program executable by using
chmod +x theprogramname
Who is online
Users browsing this forum: No registered users and 1 guest