nohup--how to make it work?

Hello gurus,

I am facing an unusual problem while running nohup in shell scripts.
i want to run two scripts simultaneously.In first script ,i take a backup of "nohup.out" & remove it .In second script,i state "nohup ./scriptname"
but "nohup.out" is not getting generated ??

pls find attached two scripts.
firstly,i want to run "selectica_stop" & then "selectica_start".

When "stop" takes place:
1> It has to stop appropriate servers. < working>
2> It must take a backup of nohup.out & then remove it < sometimes works>

when "start" takes place:
1> It has to bring up appropriate servers < working>
2> It must generate "nohup.out" in specified directory < not working>

Your suggestions/corrections are welcome.

Thanks & Regards
AbhijeetKul

These scripts call others that I cannot see, so I need to guess at some of this. You are starting up 4 instances of a server, but you only have a single shutdown. Are you sure that you are not leaving 3 instances running? If so those remaining instances are continuing to write to nohup.out. And here is a certain error... You have four scripts all writing to the same nohup.out. They will overwrite each other's data.