LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   putting shell script accessible in all directory (https://www.linuxquestions.org/questions/linux-general-1/putting-shell-script-accessible-in-all-directory-149549/)

demmylls 02-23-2004 10:28 AM

putting shell script accessible in all directory
 
i have created a sh script to mount and unmount devices when i call it to.

where do i place the sh script file name "mum" so that when i am in let say /usr/src/linux and would like to call the mum sh file and mount devices.

currently i have to do this inorder to mount device using my sh script:-
# sh /home/laiseng/mum mount

frieza 02-23-2004 10:37 AM

yeah, it's possible, first, did you chmod 777 the shell script to give it execute permissions?
then put it in /bin or /usr/bin....


All times are GMT -5. The time now is 08:04 AM.