If a 'bin' exists in the user home, then add that to the PATH.


/ Published in: PHP
Save to your folder(s)

Put this line in your .bashrc.
If the user has a directory named 'bin' then that will be added to the PATH.
All scripts in that path (wich are executable) will be available as commands to that user.


Copy this code and paste it in your HTML
  1. # enable bin diretory in PATH when found
  2. if [ -a ~/bin ]; then
  3. PATH=$PATH:~/bin
  4. fi

URL: http://webschuur.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.