Re: Window Disappearing after executing Perl Script

From: Dave Brown (dhbrown_at_bga.com)
Date: 06/15/04


Date: 15 Jun 2004 12:49:33 -0700

mahesh_666@hotmail.com (Mitchley) wrote in message news:<7ebb99b4.0406041420.d4f8b27@posting.google.com>...
> Hi,
>
> I have written an extremely trivial perl script, but for some reason,
> when I try to execute it, the (execution) window just diappears.
> This is my script: (trivial.pl)
>
> #!/usr/local/bin/perl
> print "Look at all the camels!\n";
>
> So, to execute, I just double click on the file - the execution window
> pops up, my print statement gets executed, and then for some reason,
> the window immediately disappears. Any idea what is happening?

The only way I know is to put a <> at the end of the script. This
will cause the script to wait for input from the keyboard, keeping the
window open. Then, when you hit "Enter", the script will terminate
and the window will close.



Relevant Pages

  • Re: .bat to VBScript
    ... I am unsure why you can't put the batch file in the sysvol on your DC ... Use the vbscript to execute the batch file: ... policy to execute the script at logon. ... Param 2 - the style of the window the command is to be ran in. ...
    (microsoft.public.scripting.vbscript)
  • Re: Alert Window on top of all other windows - like Task Manager
    ... This is virtually impossible from script, ... If by "modal alert" you mean a message box displayed by ... "FindWindow" api to get the window handle of the dialog, ... To which I will inadvertently answer "Yes" though the reason why I ...
    (microsoft.public.scripting.vbscript)
  • Re: about functions question
    ... There's no reason to "protect" your main code in a small ... script. ... I actually have at least one: it allow me to execute all the ... applications of that idiom. ...
    (comp.lang.python)
  • Re: .bat to VBScript
    ... Use the vbscript to execute the batch file: ... policy to execute the script at logon. ... Param1 -- is the the path & command you want to execute. ... Param 2 - the style of the window the command is to be ran in. ...
    (microsoft.public.scripting.vbscript)
  • Re: Need help with Linux BASH Scripting
    ... >> I want to run a script that adds modules to kernel everytime I execute ... For that reason I need to login as a root to run the script. ... $ man -k sudo ...
    (comp.os.linux.misc)