NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 8 9 10 11 12 … 56 Next »
Auto restart recording service utility

 
  • 0 Vote(s) - 0 Average
Auto restart recording service utility
Stargrove1
Offline

Member

Posts: 125
Threads: 29
Joined: Jul 2006
#71
2008-06-12, 08:48 AM
@ gEd,

you added in 2.9 the function "writetolog" to tidy up your code, but in the script there is noch function with this name, so I get an error. I tried to write the function by myself but I failed. could you post the function?

Greetz from germany
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#72
2008-06-12, 10:36 AM
The function is listed in the last 3 lines of the scipt attached to post #1

Func Writetolog($mes)
RunWait (@ComSpec & ' /c echo %date% %time% : ' & $mes & ' >> ' & $Log_file , "" , @SW_HIDE)
Endfunc
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
imagn
Offline

Senior Member

Posts: 437
Threads: 65
Joined: Mar 2008
#73
2008-06-12, 05:40 PM
Have a slight problem that my recording service does not start on reboot, being very unfamiliar with what the code here, would it be too much trouble to ask if i could get a script, better yet an executable that checks if the recording service started in reboot and start it if it hasnt. I would be very greatful for this, and thats about all i need, as i dont use hiberbation or the ir.exe

Thanks
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#74
2008-06-12, 08:48 PM
Have you tried setting the recording service to restart on failure as described in the first few posts of this thread? I've not heard of that problem.

TBH: I'm not really into the idea of building bespoke scripts for people. I'm not a programmer, the script only just about works and it would be difficult for me to debug it if you had problems, I would need to maintain a separate version of the source etc.

The existing script is easy enough to modify and compile.

If you set $Manage_IR_process = 0 (instead of 1) it does not monitor ir.exe
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
imagn
Offline

Senior Member

Posts: 437
Threads: 65
Joined: Mar 2008
#75
2008-06-12, 10:30 PM
gEd Wrote:TBH: I'm not really into the idea of building bespoke scripts for people. I'm not a programmer, the script only just about works and it would be difficult for me to debug it if you had problems, I would need to maintain a separate version of the source etc.

No problem gEd, thought i'd ask as i have 0 programming knowledge, well i guess i will tinker around with it and ask questions as see what i come up with
Stargrove1
Offline

Member

Posts: 125
Threads: 29
Joined: Jul 2006
#76
2008-06-13, 09:57 AM
gEd Wrote:The function is listed in the last 3 lines of the scipt attached to post #1

Func Writetolog($mes)
RunWait (@ComSpec & ' /c echo %date% %time% : ' & $mes & ' >> ' & $Log_file , "" , @SW_HIDE)
Endfunc

Sorry, I don't know how could have missed it.
Stargrove1
Offline

Member

Posts: 125
Threads: 29
Joined: Jul 2006
#77
2008-06-13, 10:16 AM
I got one more question. Is the Function "Standby" used? I can't find the function in main while loop.
chemie
Offline

Member

Posts: 86
Threads: 17
Joined: Jan 2008
#78
2010-01-13, 12:02 AM
GUISetState($WS_MINIMIZE)

fails as WS_Minimize is not set before this call ?
I commented out for now as I do not know what it is doing?

Also appreciate comment on the above re: Standyby not being called?

For now, I just want this to restart damn ir.exe which seems to die for no reason after some time (no hib or standby or anything)
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#79
2010-01-13, 12:26 AM
Weel it;s been a while since I last looked at this. Since building a new pc I no longer have ir.exe problems and I just use liteswaps' start_pvrx2 to maintain focus.

I think you need to leave GUISetState($WS_MINIMIZE) as it is. I never really got my head around the gui functions (remember I ripped this version off from liteswap).

I think Standby function is called by the line Case $GUI_EVENT_CLOSE but I can;t really remember.

If you only want it to monitor ir.exe, comment out the lines in main loop and standby func that say

Check_Recording_Service ()
Check_GBPVR()


HTH
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#80
2010-01-13, 05:16 PM
The original utility called functions from a library and one in particular - ControlService - isn't included in the source I posted - so I've attached it here. Otherwise, do take a look at the source which I think is fairly well-commented.

There's also a reasonably helpful (nothing as good as this one of course Smile) forum here.
--
[ATTACHMENT NOT FOUND]
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): « Previous 1 … 4 5 6 7 8
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto loader for DirectVobSub (Blu-ray Forced subtitles) whurlston 63 29,597 2015-05-14, 08:41 AM
Last Post: Lao Pan
  NextPVR UI Web Service bgowland 2 2,839 2012-02-01, 07:12 PM
Last Post: pBS
  Windows Desktop/Sidebar Gadget with Recording Schedule cncb 0 1,836 2011-09-29, 12:49 PM
Last Post: cncb
  MpegImport utility added to wiki sixgun 66 23,176 2010-05-25, 01:48 PM
Last Post: carpeVideo
  Enhanced Web Admin (EWA) Build 81 BETA Web Service Release UncleJohnsBand 0 1,381 2009-05-22, 09:05 PM
Last Post: UncleJohnsBand
  Showname - Rename utility for GBPVR recordings Anthony 0 1,471 2009-03-05, 05:40 PM
Last Post: Anthony
  Utility to help with Channel Scanning timh 8 3,925 2009-02-09, 12:49 PM
Last Post: timh
  HVR 1300 Recording Quality Improvement garymeds 4 2,248 2008-07-02, 11:24 PM
Last Post: bunegg
  I-xmltv: TV Guide customization & Zap2It EPG utility. Jim_ 304 97,307 2007-09-18, 02:20 PM
Last Post: lrf2005
  File Renaming Utility: AddEpisode turkey 11 3,931 2007-04-30, 10:48 PM
Last Post: David

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

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

Linear Mode
Threaded Mode