I have situation where I need to reboot Solaris system using the standard /etc/shutdown script. However, prior to reboot I would like to terminate some tasks and applications using the binaries provided by the application provider. These binaries will only run as a normal user logged in with a specific environment settings and will not run as root user; unledd you use "su -" to maintian the environemnt.
Since I need to execute these binaries within cron, and recognizing the fact, that /etc/shutdown can only be executed by root; I need to derive a script to maintain the user's environemnt as well be able to execute shutdown. Any thoughst or ideas will be much appreciated.
Hasmukh Daji
Since I need to execute these binaries within cron, and recognizing the fact, that /etc/shutdown can only be executed by root; I need to derive a script to maintain the user's environemnt as well be able to execute shutdown. Any thoughst or ideas will be much appreciated.
Hasmukh Daji