On occasion, it may be prudent to create a generic symbolic link to an application directory whose name frequently changes (e.g. version numbers appended to the directory name). Why? The site may have a number of scripts or other types of programs that reference the generic name. In this example, I want myexample to be listed in the /opt directory.
#cd /opt
#ln -s /raid/myexample_18 myexample
#ls
myexample (checking for the listing)
Start my shell script in the background.
#/opt/myexample/bin/start_program.sh &
To remove a symbolic link
#rm myexample
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment