|XP is just a number|
backgrounding a Tk processby mpersico (Beadle)
|on Oct 09, 2012 at 13:17 UTC||Need Help??|
mpersico has asked for the
wisdom of the Perl Monks concerning the following question:
I have a Perl script that has three output modes - print, print in a spawned xterm and output to a Tk::NoteBook. What I would like to do is be able to run the script, output to Tk and then exit the script, leaving the Tk widget up and running.
I've seen a few things about reconnecting stdout/err and fork execing, but I've had no luck, so I think I must be missing something.
I have resorted in the meantime to moving my script X to X.pl and using the following as X:
Surely there is a more correct way to do this. Does anyone know it?
Much obliged - Matt