in reply to Using Sockets

An easier way for your process to become a daemon, is to use Proc::Daemon.

What I would do, is leave a server (as a daemon) running continuously (it would be blocked in an accept() most of the time). Then have the client "call home" when required, possibly through cron or similar.

Best regards