andreone Posted April 15, 2009 Report Share Posted April 15, 2009 (edited) 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 April 15, 2009 by andreone Link to comment Share on other sites More sharing options...
FranciscoR Posted April 15, 2009 Report Share Posted April 15, 2009 (edited) 1.Could it be the location of 7z.exe ? I use {7z}7z x... 2.You're trying to exclude '!texted.ini' or to use '!' as wildcard ? (! is not supported by 7z?) Edited April 15, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
andreone Posted April 15, 2009 Author Report Share Posted April 15, 2009 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 More sharing options...
FranciscoR Posted April 15, 2009 Report Share Posted April 15, 2009 (edited) 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 April 15, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
andreone Posted April 19, 2009 Author Report Share Posted April 19, 2009 Ok, I have found a workaround by adding start "" before the command line. The 7z extraction is then done into an other windows and Keratin doesn't hang anymore. So, there's definively an issue with Ketarin and large console outputs. Link to comment Share on other sites More sharing options...
floele Posted April 25, 2009 Report Share Posted April 25, 2009 Remember to use & at the end of the whole command if you want it to run in background. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now