Keep It Simple, Stupid | |
PerlMonks |
Re: nohup & PERL.by Dragonfly (Priest) |
on Apr 17, 2002 at 01:05 UTC ( [id://159691]=note: print w/replies, xml ) | Need Help?? |
You might want to look into socket programming in Perl; it's not really that terribly difficult to get started, and there are some good examples around the Monastary. Here is a short example of networking with IO::Socket.
The reason I suggest this type of approach is that using netcat is going to limit portability for your code, if you decide to try and run it on a platform that doesn't have netcat for instance. Also, using spawned external child processes will likely lead to more issues such as the one you're having. It's probably a better idea to use the functionality that's already built in to Perl.
In Section
Seekers of Perl Wisdom
|
|