Consider the following value of
PATH variable:/bin:/usr/local/sbin:/home/tom/bin:/home/tom/test
Tom modifies the my_scr.sh script, which is stored in the directory /home/tom/bin
then places a copy of my_scr.sh
in /home/tom/test
. Executing my_scr.sh
will:
- Run the original version of the script in the /home/tom/bin directory
- Run the new version of the script placed in /home/tom/test
- Check the timestamp and run the latest version of my_scr.sh
- Not run at all, reports error
Please login or Register to submit your answer