Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl-Sensitive Sunglasses
 
PerlMonks  

run perl script

by vrempire (Sexton)
on Aug 07, 2000 at 05:43 UTC ( #26481=perlquestion: print w/ replies, xml ) Need Help??
vrempire has asked for the wisdom of the Perl Monks concerning the following question:

hi guys,I have a problem here.Hope u can help me.My problem is,when I tried to run the perl script,by clicking on a button in HTML page,it asked me to save the perl script.Then,after I asked it to open it,the perl script then run in the MS-DOS,but it quickly disappear,before I can read the result.How I can make it stop before disappear so I can read the result and how I dont want to see the save dialog box?Please help me..

Comment on run perl script
RE: run perl script
by ar0n (Priest) on Aug 07, 2000 at 06:07 UTC
    In the start-menu, you'll see an option called "Run" or something like that. Click on it.
    Type 'cmd' or if that doesn't work, 'command'. (I forget which one it is, since i don't use Windows 9x/NT much (not))
    A window with the DOS prompt should pop up, at the command prompt type:
    C:\Windows\>perl script.pl
    Where script.pl is the name of the script you're trying to execute.
    If that doesn't work, you'll either need to download and install the perl interpreter
    or add your perl directory to your path.

    -- ar0n | Just Another Perl Joe

(crazyinsomniac) Re: run perl script
by crazyinsomniac (Prior) on Aug 07, 2000 at 06:11 UTC
    Why are you using a HTML button?
    Just run it from command line and the MD-DOS window won't disapper.
    So you can see the result.
    
    If you don't want to see the dialog box anymore,
    when the dialog box comes up,
    select 'Open this file from it's current location.',
    and then  uncheck the box that says:
     'Always ask before opening this type of file.'
     then hit ok and the dialog-box won't come up anymore.
     ______________________________________________
    |_____¸.·ooO--(> cRaZy is co01. <)--Ooo·.¸_____|
     ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
    
      It wont work in a command like for me. I'm running WinXP, I go Start > Run > cmd In DOS box, I type 'perl myscript.pl' without the quote and it says back "'perl' is not recognized as an internal or external command, operable program or batch file." How do I run this script then?
RE: run perl script
by Russ (Deacon) on Aug 07, 2000 at 06:25 UTC
Re: run perl script
by vrempire (Sexton) on Aug 07, 2000 at 07:06 UTC
    well,thanks guys..now I run the perl script from the command -line.and it make my life easier. anyway,I would like to know ,if the result of the perl script show very fast and I cannot scroll it up,to see it,is there any way, so that it can show page by page,like hit enter when it show --more-- to see next page?
      You can also change the amount of lines that the DOS window will store, so you can scroll back over more.

      -or-

      You can also try to program your own pauses into the program's output, and then read it that way.

      -or-

      You can pipe all of your output to a text file and then read it at your hearts content in Notepad or whatever your text editor of choice is.
      Cheers!
RE: run perl script
by BigJoe (Curate) on Aug 07, 2000 at 17:21 UTC
    You need to be running NT web server. (I am not sure about the personal Web server by MS for 95/98). Because what you really need to do is set up a Service for ActiveState PERL. Then the web server will interpet it. You may also need to take and do an association for the web server. (That is what my IIS admin told me).

    --BigJoe

    Learn patience, you must.
    Young PerlMonk, craves Not these things.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://26481]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-04-16 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (418 votes), past polls