Jump to content
Ketarin forum

How to monitor a Linux distro with Ketarin and download at +500 KB/s


josh
 Share

Recommended Posts

This is going to depend on your bandwith of course. :) And you are going to need a download manager, i don't say it will work with every download manager but i got it working smoothly with Wget. I did not try with Cygwin but i suspect it will work the same way, all you have to do is to adjust path to wget.exe.

 

So, start capturing the url like any regular url, and add

start "" /wait "d:\USB-Toolkit\Wget\wget.exe" {preupdate-url} -P "{root}USB-Toolkit\{category}\{appname}" & exit 2

to the "Execute the following command before downloading" box. This will instruct Ketarin to pass above command to Wget and if an update is available, it will open Wget in a background window. Both the Exit code 2 and {preupdate-url} variable where just added to the new Ketarin 1.5b9 so you are also going to need that build or above. Here's a screenie of my Maveric download

 

 

Image_2010-10-10_17-33.jpg

 

 

Regarding Wget usage, although i don't see an advantage of using it to download small files, i find it very usefull to download larger one's. In my experience (limited of course) it works great with Ketarin. But if you are on a slower connection, that fails somewhat, and if you find command above troublesome, you may want to consider the alternative below.

 

start "" /wait "d:\USB-Toolkit\Wget\wget.exe" -t 45 --limit-rate=100k -a log.txt {preupdate-url} -P {root}USB-Toolkit\{category}\ & exit 2

 

Thanks to Mr.Florian for supporting and implementing this new feature to Ketarin.

Edited by josh
Link to comment
Share on other sites

Hi josh,

maybe you can help me out with start " /wait COMMAND. Any idea to bypass the download directly to wget/curl, but without the need to set an URL in ketarin?

Ketarin doesn´t start the pre download Command, even "Force Download" does not work.

 

How did you solve it?

Link to comment
Share on other sites

Since exit 2 was implemented recently i don't have loads of experience with it and most likely some bugs exist. Using Wget, i did some quick testing with other variables, even with Filehippo ID with an empty URL and i did not experience any problem. I did some testing w cURL yesterday, it seems to work as Wget, only problem i found is it seem to have some sort of sub-directory limitation to write output file. Sorry if i can't assist you any further but i do not use this app.

Edited by josh
Link to comment
Share on other sites

make sure you're quoting the URL, in case it has an ampersand in it. ampersand in a command line is treated as a new command (kinda like a carriage return). most url's have ampersands, so anytime you're writing it to a command line, you have to quote it to avoid that behavior.

start "" /wait curl.exe -O "{preupdate-url}" & exit 2

Link to comment
Share on other sites

THX all, but it doesn´t work.

Maybe I´m unable to see the fault, or I missunderstand.

Thats the quick example.

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="5b2368fd-4ed1-4a73-855b-c271bed46a45">
   <SourceTemplate><![CDATA[]]></SourceTemplate>
   <WebsiteUrl />
   <UserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)</UserAgent>
   <UserNotes />
   <LastFileSize>152930</LastFileSize>
   <LastFileDate>2010-10-13T22:57:29.7176</LastFileDate>
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator>ForTesting</VariableChangeIndicator>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <SetupInstructions />
   <Variables>
     <item>
       <key>
         <string>SFlatest</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex />
           <Url>http://sourceforge.net/projects/unetbootin/files/</Url>
           <Name>SFlatest</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>Match1</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>dload filename { url: '(.*?).exe</Regex>
           <Url>http://sourceforge.net/projects/unetbootin/files/</Url>
           <Name>Match1</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <Url>http://sourceforge.net/projects/unetbootin/files/</Url>
           <TextualContent>{Match1:split:-:-1}</TextualContent>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{Match1}.exe</TextualContent>
           <Name>url</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>ForTesting</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>i simulate an update</TextualContent>
           <Name>ForTesting</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>preupdate-url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{Match1}.exe</TextualContent>
           <Name>preupdate-url</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand>start "" /wait curl -L -o "{2DIR}\UNetbootin-{version}.exe" "{preupdate-url}" & exit 2</ExecutePreCommand>
   <ExecuteCommandType>Batch</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category> Tools</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>q:\software\UNetbootin_494.jpg</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2010-10-13T22:57:29.7176</LastUpdated>
   <TargetPath>{2DIR}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl />
   <Name>UNetbootin</Name>
 </ApplicationJob>
</Jobs>

Edited by Gozi
Link to comment
Share on other sites

Hi Gozi,

 

I think you are misunderstooding how Ketarin works.

I suggest you start by reading wiki (or older documentation in CDBurnerXP site).

As for sourceforge downloads, you need to read the following thread before proceeding http://ketarin.canneverbe.com/forum/viewtopic.php?id=557

Even though it is possible to download UNetbootin using Ketarin, currently it is not possible to use SF protocol with {preupdate-url} variable. Using other variables it is possible to do it, however you cannot use that URI scheme.

Edited by josh
Link to comment
Share on other sites

If you use sf://... as download URL, the pre-update URL will be something like scp://... which represents the file location on the sf.net SCP server. In theory, it is possible to download this file, but I don't know if there is an application that accepts scp:// URLs. This program would also need to know the credentials.

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.