Yea...I thought I could do something simple like that. But it backgrounds the entire program so that the interactive portion (asking for username/pwd) is lost to the user.
Comment on Re^2: Breaking out of interactive program
Sorry, I was guessing at what you wanted since I had hard time understanding your question. Based on this new information, I'm sure you'll find Daemon::Daemonize most useful.