Script command error

Hi Everyone!!

I have created a menubased shellscript. I'm going to give a user to invoke the menu autometically every time he logs in to the system. I want all the activity to be logged for that user. I have done the following thing to to this.

SHELL=/full/path/name/of/my/menu.ksh
export SHELL
script -a logfile

As soon as the user logs in .profile is executed. When "script" command is executed menu is invoked as the shell is set to menu.ksh.

Using the menu I'm starting 2 daemon processes using the nohup and & combination.
The process starts successfully. The parent process id changes to 1 as expected. however terminal is still showing /dev/pts/1.
As soon as i log out of the menu My process gets killed.

I used at command to start the daemon.. however at is restricted in our environment.

Can anyone help me on this problem.

Regards,
VK