I would like to write a Unix script to do the following:
1. Check if a filesystem is mounted, if the
file system is mounted on this system,
execute a script tha would be passed as
a second parameter in the script.
For example:
if /tsmmsc is mounted
execute <script_name>
else
exit.
I would be setting this script up in crontab as follows:
00 23 * * * /home/user/schedjob (filesystem to be checked) (script to be executed)
example:
00 23 * * * /home/user/schedjob '/tsmmsc' '/tsmmsc/server/script/cappln.scr -sdlnfr'
Can anyone provide assistance and how to write this script?
Are you able to schedule crontab jobs and pass parameters for the script execution as outlined in the example provided.
Regards,
Tim