DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Perl (http://www.daniweb.com/forums/forum112.html)
-   -   self killing perl prog (http://www.daniweb.com/forums/thread124281.html)

somename May 14th, 2008 9:36 pm
self killing perl prog
 
HI guys. Jeezz, perl forum is kind of abandoned ;/ Anyway, maybe some one will have an idea.
I want to write a selfkilling perl prog :D Ok, i got a simple prog which shows up a simple tk window with some text in it, to go to the next function (in my app), i have to close window manualy. Is it posible to make that window disappear, lets say, after 10 seconds, without my interference? The same is about perl scripts which runs an xterm and after some function you always have to close that window to go forward. Or, is there a way to run perl script without shell environment (i'm not talking about daemons here)?

katharnakh May 14th, 2008 11:37 pm
Re: self killing perl prog
 
Quote:

Originally Posted by somename (Post 607063)
... perl forum is kind of abandoned ;/

Its not true.

Quote:

Originally Posted by somename (Post 607063)
...
I want to write a selfkilling perl prog :D Ok, i got a simple prog which shows up a simple tk window with some text in it, to go to the next function (in my app), i have to close window manualy. Is it posible to make that window disappear, lets say, after 10 seconds, without my interference? ...

If you want to come out of execution for some reason, you can use exit(0) function in the program, which is a premature exit...

It is just a guess... there should be <childwindow>.destroy() function to destroy top level window or child window.

Quote:

Originally Posted by somename (Post 607063)
...
The same is about perl scripts which runs an xterm and after some function you always have to close that window to go forward. Or, is there a way to run perl script without shell environment (i'm not talking about daemons here)?

I dont understand this.

katharnakh.


All times are GMT -4. The time now is 7:14 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC