Re: console window

2002-11-21 Thread Jason Purdy
At the end of your perl program, add the line:
system( PAUSE );

http://www.computing.net/programming/wwwboard/forum/3270.html

HTH,

Jason

Gary Rocco [EMAIL PROTECTED] wrote in message
001301c290f9$02bad3d0$93b500c7@hppavilion">news:001301c290f9$02bad3d0$93b500c7@hppavilion...
when i ran perl programs using windows 98 operating system, i double clicked
on the program name in windows explorer.  i kept the program files right in
the C:\Perl directory.  the programs would open a command prompt type
console window and execute.  the console window remained open until i
clicked on the X to close it.

now i have a new hp pavilion pc running windows xp. everything else being
the same, when i run the perl programs from windows explorer, the console
window opens, executes and closes before i can see anything in it.  i
realize that if i open the command prompt, i can see the program results but
i would like to be able to run the programs directly from windows.  i have
tried changing the suffix from .pl to .bat(using pl2.bat).  the results are
the same either way.

thank you

gary rocco

[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: console window

2002-11-21 Thread Peter Kappus
Another quick dirty trick is to just put a 
STDIN;
at the end of your script.  This makes yours script wait for input.  When
you hit enter it will terminate and the window will close.  Of course,
this only works if your script gets to the end.  If it runs into a compile
error, you'll see the error message for 3 microseconds before the window
closes... Many editors let you execute commands from the IDE.  I like gVim
(steep learning curve but oh-so-snappy once your fingers learn a few simple
commands) Anybody know how to do more sophistocated error trapping or
console execution?  Yes, I know, this isn't really even a CGI question.  Who
uses a console for CGI development anyway?

-p


-Original Message-
From: Jason Purdy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:08 AM
To: [EMAIL PROTECTED]
Subject: Re: console window


At the end of your perl program, add the line:
system( PAUSE );

http://www.computing.net/programming/wwwboard/forum/3270.html

HTH,

when i run the perl programs from windows explorer, the console
window opens, executes and closes before i can see anything in it.

thank you

gary rocco

[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




console window

2002-11-20 Thread Gary Rocco
when i ran perl programs using windows 98 operating system, i double clicked on the 
program name in windows explorer.  i kept the program files right in the C:\Perl 
directory.  the programs would open a command prompt type console window and execute.  
the console window remained open until i clicked on the X to close it.

now i have a new hp pavilion pc running windows xp. everything else being the same, 
when i run the perl programs from windows explorer, the console window opens, executes 
and closes before i can see anything in it.  i realize that if i open the command 
prompt, i can see the program results but i would like to be able to run the programs 
directly from windows.  i have tried changing the suffix from .pl to .bat(using 
pl2.bat).  the results are the same either way.

thank you 

gary rocco

[EMAIL PROTECTED]