Jump to content
Ketarin forum

post download command freeze


andreone
 Share

Recommended Posts

Hello,

 

I have a problem with some applications. The download part is OK, but the command line executed after the download failed. Actually, the command never returns.

The command is a simple zip extraction to a folder using 7z.exe (4.65)

 

I'm sure this is not a problem of the command line itself, since if I execute the same command (copied from ketarin's output), it succeeds.

I have also other app with the same process after downloading and the command line succeeds.

 

Looking in the task manager, it appears that the 7z process does simply nothing (0% cpu), and Ketarin's wait infinitely.

If a kill the 7z process, Ketarin's released. Then the ouput shows a truncated capture of 7z outputs.

I noticed this bug only appears when the downloaded archive contains a large number of files (over a hundred).

 

Here's a template of an application that fails (RJ Text Editor):

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="3931a5f0-79cc-4078-b1e7-ff6eb3b9b78b">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>true</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>http://www.rj-texted.se/download.htm</Url>
           <StartText>RJ TextEd installer version </StartText>
           <EndText> (</EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand>7z x -y -r -x!texted.ini -o"{install_root}\{category}" {file}</ExecuteCommand>
   <ExecutePreCommand />
   <Category>Edition</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>\\Intra05\Etudes\Automate\Apps\Edition\RJ_TextEd_NoInstall.zip</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2009-04-14T10:26:56.3874668</LastUpdated>
   <TargetPath>{repo_root}\{category}\</TargetPath>
   <FixedDownloadUrl>http://www.rj-texted.se/downloads/RJ_TextEd_NoInstall.zip</FixedDownloadUrl>
   <Name>RJ TextEd - Portable</Name>
 </ApplicationJob>
</Jobs>

 

Could't it be something like Ketarin uses a buffer of a fixed size that is not big enough to capture all outputs and then freezes the 7z process?

Edited by andreone
Link to comment
Share on other sites

1. No it can't. 7z.exe is in Ketarin's folder and I have other apps that use the same kind of command lines and they work

2. I'm excluding texted.ini. Using ! is correct:

-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames

 

Again, when I copy from Ketarin's log the command line that fails and execute it a command prompt, it works.

 

Does my example work for you?

Link to comment
Share on other sites

Never used -x. But I tested with

 

{7z}7z x {file} -o"d:\iview\" -y -r -x!*.exe

 

And it works fine for me. Try this, with <arguments> in the end:

 

7z x  {file} -o"{install_root}\{category}" -y -r -x!texted.ini

 

But I fail to see why your previous command fails to work in Ketarin.

Edited by FranciscoR
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.