Shell script to create a link

Hi All,

I have a problem to writing a shell script to create a soft link in some other directory

For eg:

/opt/Shreedhar/Naik is directory
now i need to write shell script in the path /opt/Shreedhar/Naik which should create a soft link in /opt/Shreedhar.

I have tried to write the script by using the command: ln -s ivperl /opt/Shreedhar/perl/5.6.1 but its creating the link in the same folder. But i need to create the link in on-step back folder ie: /opt/Shreedhar my script location is /opt/Shreedhar/Naik

cd to the directory where the link will live. Use the ln command there. cd - to return to the original directory.

Please check this link...

Examples of using the ln command

Thanks

I have used like

ln -s /opt/Shreedhar/perldist/5.6.2 /opt/Shreedhar/ivperl

And It's working...

But i need to create this link only when the link is not exists in /opt/Shreedhar if the link is already exists the script should not create the link and even should not give any error message. Is there any way to check whether the link is exists or not. Like -e for file check ....