Hi z1gg33, It's a pity you didn't write windows instead of linux as I have a prog that may well do the job.
Mickstv
As the title suggests.
I am after 'ANY' type of program (in whatever language) that runs on linux that will.
Auto Unrar files. (Yes I have checked for 2 days) but so far am not able to find one that does what I need. (I have found a few that do some of it - but not all)
specifically..
Run daily. (cron it)
Unrar all rar's in a specific dir whilst keeping the RARS (for seeding)
After a period of time (say 3 days) I wish for the rar;s to be deleted and the Dir to be moved to another folder (for arguments sake say.... 'Movies')
delete anything not part of the Movie file
Check the disk space to make sure it can be extracted to the HDD (rar's)
Don't uncompress it if less than a specific amount of HDD space (<15%)
Be able to not only run daily (cron) but also be able to run at the CLI when/if I see fit.
has anybody seen anything like this please...
edit: I have played around a bit tonight in bash.... but geeez if you have not done it in a while... well MY HEAD hurts..... lol
editx2: must be a cli NO desktop interface here....
Last edited by z1gg33; 10-03-11 at 09:50 PM.
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
Look Here -> |
Hi z1gg33, It's a pity you didn't write windows instead of linux as I have a prog that may well do the job.
Mickstv
yeah.... I know plenty of stuff aval for windows.... but I am using utorrent for linux at the moment....
I just need to automate it..... i might try myself.... but best to ask others if they have seen something that will do it... (the whole re-invent the wheel thing)... as I AM SURE this is not a new concept...
geez even pulled out the old 'c' books..... lol
editx2: I should mention I know vlc (for whatever platform plays archived files) but thats not 100% what I am after..
Last edited by z1gg33; 10-03-11 at 10:22 PM.
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
z1gg33,
Ok I've got no idea if this prog will work or whether you can modify it. So I guess use at your own risk and don't use on a drive with all the good stuff on in case it deletes everything.
I hope it runs in english here are the site links.
And the website I found it at translated link below.
This is the website the first link came from.
Mickstv
Last edited by mickstv; 10-03-11 at 11:08 PM.
z1gg33 (11-03-11)
For what you want i would be looking at perl or python, and probably python specifically. Although it can be done in bash it, python would be easier imo.
You can have a look at some of which will may get you part of the way. I no longer use these anymore.
Have a look at: rvid-ext, runvid, runvid-batch & p2rep scripts.
My scripts never did check for disk space though, should be easy enough to add using df & awk combinations.
z1gg33 (11-03-11)
cheers,
Had a look at python, never used it... so it might be a good experience (taking longer)
if anybody is interested....
(windows)
(windows IDE)
Using these on a windows machine just for ease of use.... then hopefully port it across....
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
started on this today (mighty impressed with python) BUT....
geez having a brain freeze tonight..... so putting it out there to pro programmers.
I want to move dir after todaysdate +3days.
if dirdate<=todaysdate (<= because power outage/ maybe I have had machine off for a few days)
unrar it
touch it (todaysdate+3 so delete rars/move dir in 3 days time)
which logically will not work?
Last edited by z1gg33; 15-03-11 at 10:13 PM. Reason: files=dir, beers & logic dont mix... ;)
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
OK,
finished it (sorta)....
works
putting it on other machine and testing for a day or two...
its not sexy, but muddled my way through it.lol
edit: slight re-write needed for .part.rar files...(i hope)
Last edited by z1gg33; 19-03-11 at 06:19 PM.
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
still tweaking it, a few mistakes have been made..... but here is the desc/help file.. will post log file as soon as I get a few days worth in....
Usage: AutoUnrar.py [options]
This program will Un-compress *.rar/*.part??.rar files that are saved in your
torrent directory. It will also delete the *.rar/*.part??.rar files and move
the directory after 3 days (for continued seeding purposes) can be run from
the command line, or setup with cron, REQUIRES: RAR 3.80, Python 2.7.1, and
gawk to be installed ALSO requires SU/Root privileges. Variables that NEED to
be modified in the .py script include SEE Variables:
Options:
-h, --help show this help message and exit
-n Will delete compressed files and move the dir's with out seeding
for 3 days *NAUGHTY*
Variables:
torrent_path = Where your torrent client stores your completed torrent
files
move_to_path = Where you wish to move completed torrents after seeding
for 3 days
move_after_days = How many days to seed for
logging = Keep a log of what has happened
edit: quick log file
Program Start: Mon Mar 28 17:38:50 2011 Switch Used: None
Move //home//z1gg33//Downloads//Backup//CompleteTorrents// on the 2011-04-01 <------------- THIS is an error should not show up!!!!
File Type = rar
Uncompressed Filesize = 183525710
HDD Space Available = 10467479552
Move //home//z1gg33//Downloads//Backup//CompleteTorrents//Bobs.Burgers.S01E09.HDTV.XviD-LOL on the 2011-04-01
Move //home//z1gg33//Downloads//Backup//CompleteTorrents//Bobs.Burgers.S01E09.HDTV.XviD-LOL/Sample on the 2011-04-01
################################################## ###############################################
Last edited by z1gg33; 28-03-11 at 07:14 PM.
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
was just reading a pdf on python programming. to improve my lack of knowledge and it was talking about mobile devices (in this case... android)...
not having an android device, i thought hmmmm interesting, wonder about iphone.... quick search , no suprises who's name popped up.... impressive.
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
sorry been a bit BUSY....
just too finish of the thread thought I'd post a few results...(not too be a hero- as it needs a re-write, made all the mistakes a 1st (attempt) python programmer(er) can, its shocking!! lol professionals PLEASE ignore.
many many things can be improved. and are duly noted.
yeah, yeah, why bother! ;P
edited for ummmm clarity (their is other things omitted from log) i guess if you can follow it?
log on the 04-04-2011
---------------------------------------
Program Start: Mon Apr 4 15:26:59 2011 Switch Used: None
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E06.Why.Is.It.So.2.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E06.Why.Is.It.So.2.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E08.Weeing.DVDRip.XviD-aAF
Uncompressed Filesize = 243929088
HDD Space Available = 27515584512
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E08.Weeing.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E08.Weeing.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E07.Colour.DVDRip.XviD-aAF
Uncompressed Filesize = 243705856
HDD Space Available = 27271409664
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E07.Colour.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E07.Colour.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E03.Why.Is.It.So.DVDRip.XviD-aAF
Uncompressed Filesize = 243519488
HDD Space Available = 27027456000
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E03.Why.Is.It.So.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E03.Why.Is.It.So.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E04.Apocalypse.DVDRip.XviD-aAF
Uncompressed Filesize = 243740672
HDD Space Available = 26783756288
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E04.Apocalypse.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E04.Apocalypse.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E05.Eating.DVDRip.XviD-aAF
Uncompressed Filesize = 243783680
HDD Space Available = 26539778048
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E05.Eating.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E05.Eating.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E02.Big.Mouth.DVDRip.XviD-aAF
Uncompressed Filesize = 243836928
HDD Space Available = 26295848960
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E02.Big.Mouth.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E02.Big.Mouth.DVDRip.XviD-aAF/Sample on the 2011-04-07
File Type = rar in //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E01.Superhuman.DVDRip.XviD-aAF
Uncompressed Filesize = 243740672
HDD Space Available = 26051584000
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E01.Superhuman.DVDRip.XviD-aAF on the 2011-04-07
Move //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF/Sleek.Geeks.S02E01.Superhuman.DVDRip.XviD-aAF/Sample on the 2011-04-07
log on the 07-04-2011
-------------------------------------------------------------
Program Start: Thu Apr 7 01:00:02 2011 Switch Used: None
Deleting Compressed files....
Moving Directory //var//hda//files//Utorrent//CompleteTorrents//Sleek.Geeks.S02.DVDRip.XviD-aAF
not happy with it as it stands.... added a few switches.... but pffft does what it does. without having to do it manually... yay!
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
edit: NOT TRYING TO REHASH old thread... I have been away for a couple weeks.... and thought it might help others
just in case others may want to have a play
81 Python Books (270M) I had to find these again, as I lost em.
Code:addison wesley - text processing in python.chm Addison.Wesley.Perl.To Python Migration.chm Addison.Wesley.Python.Programming with the Java Class Libraries.chm Addison.Wesley.Text.Processing.In.Python.eBook-LiB.chm Advanced Python Programming 2000.pdf Beginning Python (2005).pdf Beginning Python - From Novice To Professional (2005).pdf Beginning Python - From Novice To Professional 2005.pdf Beginning Python - From Novice to Professional.pdf Beginning Python - ISBN 0764596543.pdf Beginning Python - ISBN 159059519X.pdf Beginning Python 2005.pdf Beginning Python.pdf Core Python Programming 2000.pdf Data Structures and Algorithms with Object-Oriented Design Patterns in Python.chm Game Programming with Python Lua and Ruby 2003.chm Game Programming With Python, Lua, And Ruby (2003).chm Game Programming with Python, Lua, and Ruby - ISBN 1592000770.chm Game Programming with Python, Lua, and Ruby 2003.chm Green tea Press, How to Think Like a Computer Scientist Learning with Python 2002.pdf John.Wiley.and.Sons.Making.Use.of.Python.eBook-LinG.pdf Learning Python 1st 1999.chm Learning Python 2nd ed.chm Learning Python, 2nd Edition 2003.chm Making Use Of Python (2002).pdf Making Use of Python - ISBN 0471219754.pdf Making Use Of Python 2002.pdf Mark Pilgrim, Dive Into Python.pdf O'Reilly - Python In A Nutshell.chm Oreilly.Learning.Python.2nd.Edition.eBook-LiB.chm oreilly.learning.python.3rd.edition.oct.2007.pdf OReilly.Learning.Python.chm OReilly.Programming.Python, 2nd Edition.chm OReilly.Programming.Python.3rd.Edition.Aug.2006.chm Oreilly.Python.In.A.Nutshell.eBook-LiB.chm Peachpit Press, Python Visual QuickStart Guide 2001.chm Perl To Python Migration 2001.chm Preiss B.R. Data structures and algorithms in Python (2004).chm Premier.Press.Game.Programming.with.Python.Lua.and.Ruby.ebook-LiB.chm Premier.Press.Python.Programming.for.the.Absolute.Beginner.eBook-LiB.chm Programming Python - ISBN 0596009259.chm Programming Python 2nd ed 2001.chm Programming Python, 2nd Edition 2001.chm Programming Python, 3rd Edition (2006).chm Python & XML 2002.pdf Python 2.1 Bible - ISBN 0764548077.pdf Python 2.1 Bible 2001.pdf Python 2.1 Bible.pdf Python and XML 2002.pdf Python Cookbook 2002.chm Python Cookbook, 2nd Edition.chm Python Cookbook.pdf Python Developer's Handbook 2000.pdf Python Essential Reference (2nd Edition) - ISBN 0735710910.chm Python Essential Reference (2nd Edition) - ISBN 0735710910.pdf Python How to Program 2002.pdf Python in a Nutshell - ISBN 0596001886.chm Python in a Nutshell - ISBN 0596100469.chm Python in a Nutshell 2003.chm Python in a Nutshell 2nd Ed 2006.chm Python In A Nutshell, 2nd Edition (2006).chm Python in a Nutshell, 2nd Edition.chm Python Phrasebook (2006).chm Python Phrasebook - ISBN 0672329107.chm Python Pocket Reference 2nd ed 2002.chm Python programming - An introduction to computer science 2002.pdf Python programming - An introduction to computer science.pdf Python Programming for the Absolute Beginner 2003.chm Python Programming on Win32 2000.chm Python Programming with the Java Class Libraries 2003.chm Python Programming with the Java Class Libraries A Tutorial for Building Web and Enterprise Applications with Jython 2002.chm Python Standard Library 2001.chm Rapid Web Applications With TurboGears - Using Python To Create Ajax-Powered Sites (2006).chm Springer, Python Scripting for Computational Science.pdf Teach Yourself Python In 24 Hours 2000.chm Text Processing in Python 2003.chm Think Python - An Introduction to Software Design.pdf Wrox.Beginning.Python.Jul.2005.eBook-LinG.pdf wxPython In Action (2006).pdf Wxpython in Action - ISBN 1932394621.pdf wxPython In Action 2006.pdfCode:http://www.filesonic.com/file/129940391/python.part1.rar http://www.filesonic.com/file/129989901/python.part2.rar http://www.filesonic.com/file/129882791/python.part3.rar
Last edited by z1gg33; 03-05-11 at 09:36 AM. Reason: added book titles. ;)
If you feed ducks at a pond, chances are your bound to feed a goose or two without even knowing it.
Bookmarks