Remotely run programs (unrar) on remote files? Any simple way?

Soldato
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
I've got my downloads set on my WHS box and everything is great and gets auto unrared and left there for me to pick up as and when needed on my shares and move around a bit. The odd few things come rar'ed up in rar's themselves. Which means i still end up with these bloomin' rars dotted about. Now i can unrar them from my computer over the network but thats not particularly efficient. I can also unrar them locally by RDPing in and doing it like i would normally. This also isn't efficient. So what do i do to remotely unrar a file locally on a network share i can see on my laptop?
I was thinking i can SSH in and run a dos command but still seems a little excessive don't you think? never mind the horrendous names some things are called typing some things in would be a nightmare. Hoping theres some kind of solution out there :)
 
Its not ideally what i wanted. Everything auto unpacks for me already, having two programs fight over that sounds like hassle. Plus that's sledgehammer for a nut scenario as its only the odd thing i download is rar'ed in a rar. I guess for now i'll just stick to RDPing occasionally or doing it over the network, it gets the job done, just not as well as i'd like :p
 
Not particulary, how could that annoy me? your dense nature is irritating thats about it, but you're just wasting my time, i thought someone might have had a solution instead :)
 
You said you were unhappy having two programs trying to unpack the files; surely you could disable the other programs function? Or does this cause some other hassle?

I appreciate it’s not a neat and clean method, but I agree with Wesley, AutoUnpack has a time-cycle function so that it rescans a target directory checking for par’s and rar’s. This is useful in your situation because if you were to set it to cycle every hour or half hour, the previously unpacked rar’s from within an original rar would be dealt with.

Alternatively you could disable the time-cycle function and remotely invoke AutoUnpack to execute using a batch file or rexec.exe .

http://www.codeproject.com/KB/system/remoteexec.aspx

Perhaps you could use a batch file to remotely invoke the unpack using WinRAR’s command line function? http://www.respower.com/page_tutorial_unrar

You mention the names of files sometimes being a problem, with a batch file remotely interacting with WinRAR, you could perhaps set up a promotable input for the target file path and instead of having to type the entire filename, use wildcards after typing the first part of the filename?
Eg. Silly.named.file-release2.repack.41214.rar could be targeted by having the target file as silly.na* , using the wildcard to cover the rest of the filename?

I don’t have much experience with ssh shells but does tab-complete not function properly, perhaps that’s an alternative to try? I think it’s possible in bash: http://telatin.wordpress.com/2008/07/26/bashrc_for_ssh_autocomplete/
So perhaps there’s an SSH utility that will offer the same functionality windows-side.

Sorry for offering verbal diarrhoea rather than a solution :o Let us know what you decide to do :)
 
Last edited:
Cheers mate, some nice little tidbit there. I would disable the other one but its built in to SABnzbd, and its very very reliable and interfaces well with the program, and i can check on it from its web interface. Whereas relying on autoupack i'd be left in the dark as to why something might not have yet unpacked and have to go RDPing or something equally annoying.

Never thought about trying wildcards actually, i'm not even sure if cmd accepts them (should do though), makes sense anyway! WinRAR does have a command line and so does 7zip so i'll look at SSHing and doing it that way.

Tabcomplete wont work because i'm not running a *nix box.

Cheers for that :)
 
Not particulary, how could that annoy me? your dense nature is irritating thats about it, but you're just wasting my time, i thought someone might have had a solution instead :)

Of course :)

Because everyone needs to remotely unpack Microsoft updates that have been double-RARed! lol Yes siree! Nothing dodgy-sounding about that :)
 
whats wrong with people now?
This is the 3rd/4th thread Ive seen in a few days where people are trying to make things out to be something and cause trouble :/
 
I also use sabnzbd for newsgroup downloads of "windows updates" , wink wink

Sabnzbd has a script feature available ( after something has downloaded and unpacked - it will execute a script of
your choice ) , you might be able to script unpacking the inner contents of the download using that method.
 
Yeah that crossed my mind. But by the time i know its got some strange internal rar structure it's finished and i can't have a script run remotely on it. Although i could make a default one that loops looking for rar's and unrars, not sure its worth me farting around trying to work that out though :p I'm coping for now, i just hoped there was a way i could invoke it my a right click from another remote PC etc...
 
Back
Top Bottom