Thanks Tim,
It was indeed a great help..and I really apreciate your efforts for this.
I hope you wont mind replying to the same distribtion list again..
but my problem is, The menu based utility is, currently in use my production
system and is working great..and and I just need to add a new "menu option"
in the existing environment to start and stop my application. And I need to
find the solution for my problem.
I wonder there is any built in utility in solaris which will create a log file
to capture all menu options the user have executed for that day...however my
current setting logs all the activities that are done from the menu by the user.
I'm trying to give more information on my script.
my user shell in /etc/passwd is /usr/bin/ksh
then i'm putting following lines in the .profile of the user.
SHELL=/export/home/application/scripts/main_menu.ksh
export SHELL
if [ $? -eq 0 ]
then
echo "Logging start"
script -a $HOME/oplogs/$LOGNAME.ddmmyy-hhmmss
echo "logging Ends"
fi
my menu script is running another script to start my application processes.
#!/usr/bin/ksh
echo "$PASSWD" | nohup /export/home/application/bin/app_process1 &
echo "$PASSWD" | nohup /export/home/application/bin/app_process2 &
I'm passing password to my application process this way bcoz if i pass it
directly the password is visible in the "ps -eaf" command.
but as soon as i logout from the main menu my applicatoin processes kills.
If i run the "/export/home/application/scripts/main_menu.ksh" directly from the
users login prompt my application processes working absolutely fine.
I'm not really sure why it gets killed when i try to invoke the menu script
using the "SHELL" and "script" commands
I hope this information is helpfull to help me.
Regards,
VK
--
This message posted from opensolaris.org