Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Perl script pauses twice - how do I make it continue without getting carriage returns from the keyboard?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
socrtwo  
View profile  
 More options Mar 18, 12:51 am
From: socrtwo <socr...@gmail.com>
Date: Tue, 17 Mar 2009 21:51:07 -0700 (PDT)
Local: Wed, Mar 18 2009 12:51 am
Subject: Perl script pauses twice - how do I make it continue without getting carriage returns from the keyboard?
Note, I'm a beginner at Perl programming.  Much is copying other's
scripts and hacking.

I am using the executable cakecmd unzipper in a Perl script. Normally
when cakcmd is executed outside of Perl and it's done it's work it
pauses and one has to hit enter to return to the prompt.

How can I program Perl so that it enters the carriage return for me?
Printing a carriage return doesn't work, it just adds an additional
line between prompts. At this point I call cakecmd twice in my script,
and so to complete it I have to manually hit the Enter key twice
within my Windows CMD console.

I got a promising response from Perl Beginners Google Group that
suggest I use the CPAN Perl Module called Expect, however I am unclear
how to use it. How can I tell Perl to use Expect, to look for a no
time limit pause and then execute a carriage return?  Also there is a
Pel instructor who was helping on Mahalo Answers, but so far his
suggestions don't work either.

Can the next version of cakcmd contain an option to exit and return to
the command prompt after the "report"?  Also can the next version have
an option to go to stdout instead of to file, that would be helpful
for programming.  Also an option to suppress errors would be helpful
too.

The reason I am choosing cakecmd over other command line zip programs
is I am developing a text extractor for corrupt docx Word 2007 files
which are really zipped up collections of xml files.  The text is all
within the file word/document.xml within the larger docx/zip file.
Cakcmd will unzip what it can from corrupt word/document.xml files,
albeit with an error, whereas other cmd line zip program will error
out or return 0 KB files in at least some cases that I have seen.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lycj  
View profile   Translate to Translated (View Original)
 More options Mar 19, 3:55 am
From: lycj <quick...@gmail.com>
Date: Thu, 19 Mar 2009 00:55:04 -0700 (PDT)
Local: Thurs, Mar 19 2009 3:55 am
Subject: Re: Perl script pauses twice - how do I make it continue without getting carriage returns from the keyboard?
Greetings

Thanks for your post, but the current version CakeCmd is no longer
maintained and supported (I dont even have the components installed to
compile it), There will be an updated version of CakeCmd (based on
Cake3), but it will unlikely inherit this behavior (as it uses
different component).

The source is available on the web, you can use the free Delphi
(http://www.turboexplorer.com/) to compile it, drop me a mail if you
need the components required (Cake2 and components it uses, around
10mb).
Alternatively, you may consider to use ZipGenius's commandline (http://
www.zipgenius.it), it still using Cake2 engine.

Regards
Joseph Leung

On 3月18日, 下午12時51分, socrtwo <socr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google