NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 549 550 551 552 553 … 1231 Next »
weekly batch file??

 
  • 0 Vote(s) - 0 Average
weekly batch file??
agidius
Offline

Senior Member

Posts: 469
Threads: 77
Joined: Apr 2006
#1
2007-05-01, 04:26 PM
what is the best way to run a batch file once a week?

I make heavy use of the postupdateepg, and I believe I can save some CPU power by running some of that stuff weekly.
Server--AthlonXP 2100+ \ PVR150MCE \ HVR1600 x2
Client 1--Athlon64 3200+
Client 2--Athlon64 3700+
Client 3--Turion64x2 1.9 laptop
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#2
2007-05-01, 04:30 PM
agidius Wrote:what is the best way to run a batch file once a week?

I make heavy use of the postupdateepg, and I believe I can save some CPU power by running some of that stuff weekly.

There are ways to test the date in a batch file. It wouldn't be too hard to find some code to do so. This way you can still run from postupdateepg.

An easy way out might be to use Windows scheduler to run a batch file weekly that just creates a temporary semiphore file, then test for that in your postupdateepg.bat file. Delete it when you are done processing.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#3
2007-05-01, 04:56 PM
or just create a batch file that does what you want done once a week, and schedule that with the windows scheduler.

and temporary semaphore file? qua?
sub Wrote:Are you trying to make sure I get nothing done today?
-Oz-
Offline

Posting Freak

Posts: 803
Threads: 33
Joined: Aug 2006
#4
2007-05-01, 06:45 PM
i do what Ted the Penguin suggests for daily batch processing of all recorded files.

Just create a .bat file and then have windows scheduler run it.
Dan Blomberg
[SIZE="1"]HTPC 1: MSI K8NGM2-FID, AMD 64 3000+, WD 200gb HDD, 1gb ram, NSK2400, PVR-500, Harmony 659
HTPC 2: ASUS M2NPV-VM, AMD 64 3200+, WD 250gb HDD, 1gb ram, nVidia DualTV MCE, NSK2400, Harmony 720
HTPC 3: GIGABYTE GA-E7AUM-DS2H GeForce 9400, Intel E5200 Wolfdale, WD 640gb HDD, 4gb ram, Antec Fusion 2, HVR-1600, hdhomerun, Harmony 880, PCH A-110
GBPVR 1.4.7 Additions: Weather2, UltraXMLTV, Comskip
Project: Setup Logitech Harmony Remote[/SIZE]
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#5
2007-05-01, 06:54 PM
yeah windows scheduler is nice, lets me run nightly backup scripts, and defrag different drives on different days of the week etc. I am probably going to redo them in perl at some point, since its much more extensible.
sub Wrote:Are you trying to make sure I get nothing done today?
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#6
2007-05-02, 01:08 AM
Ted the Penguin Wrote:or just create a batch file that does what you want done once a week, and schedule that with the windows scheduler.

and temporary semaphore file? qua?

I understand that the postupdateepg.bat file only kicks off when GB-PVR isn't doing anything else, like recording. This way you can avoid doing anything CPU intensive that would potentially impact a recording.

A semaphore file is an "empty" file (no useful content) used for testing tasks. I used them extensively back in the BBS days, before the Internet became popular.

Weekly Windows Scheduler scheduled batch file:
Code:
echo hello > c:\weeklytask.txt

postupdateepg.bat file:
Code:
if not exist c:\weeklytask.txt goto done
copy c:\recordings\*.mpg d:\archive\
del c:\weeklytask.txt
:done
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#7
2007-05-03, 05:09 PM
yeah , the windows task scheduler will let you look for the machine being "idle" but that only means no mouse or keyboard movement...
sub Wrote:Are you trying to make sure I get nothing done today?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,804 2012-09-30, 05:20 PM
Last Post: sub
  No Data In the Recorded File zb1 5 2,417 2010-08-24, 01:08 AM
Last Post: zb1
  Path to file being recorded. brianj 5 2,453 2010-08-08, 10:58 PM
Last Post: brianj
  error: failure playing back file yonu 4 2,174 2010-07-12, 12:52 AM
Last Post: yonu
  UK Freesat Scan.cache File jeffers 3 2,171 2010-05-25, 10:34 PM
Last Post: jeffers
  3 AC3Filter instances when playing back a still recording TS file? jksmurf 3 2,015 2010-05-17, 12:30 AM
Last Post: jksmurf
  Recording stops at 4gb file size experiencebliss 5 2,496 2010-05-04, 02:54 AM
Last Post: pBS
  Hauppage HVR-950q, no file created when recording, no pause. donbrowne 5 2,134 2010-04-08, 04:03 PM
Last Post: sub
  ffdshow postprocessing on .ts file playback alibert 2 1,764 2010-04-05, 05:33 AM
Last Post: alibert
  ATI Mux / mpeg file recordings playback issues topperdude 10 4,452 2010-03-29, 11:44 PM
Last Post: ww4397

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode