NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 208 209 210 211 212 … 433 Next »
Starting service without nvtray

Starting service without nvtray
tvfiend
Offline

Junior Member

Posts: 34
Threads: 8
Joined: May 2014
#1
2014-08-19, 06:55 AM
I plan on writing a little batch script that runs minutes before primetime that makes sure everything is set to record, or maybe one already exists?.

I thought of checking to see if nrecord.exe and ndigitalhost.exe are running, if not, execute NPVRServiceControl.exe. This would work ok but it always opens ntray, is there a way to do it without opening ntray?

Can't execute ndigitalhost and nrecord by themselves and there's no help for any of the exe's.
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2014-08-19, 11:16 AM
Why do you need this? Should we try and diagnose why recordings are failing (assuming that's the problem) before we start on a "workaround"?

The SC command may be what you are looking for ... http://ss64.com/nt/sc.html

Would a reboot be more effective ... http://ss64.com/nt/shutdown.html
tvfiend
Offline

Junior Member

Posts: 34
Threads: 8
Joined: May 2014
#3
2014-08-19, 10:01 PM (This post was last modified: 2014-08-19, 10:21 PM by tvfiend.)
It was working fine for about 3 months then in the past week there were 2 days when things didn't record and both times ndigitalhost and nrecord weren't running. Starting npvr services enables recording immediately. Why this happens? I don't know but seems there are others having the same issues. For example:

http://forums.nextpvr.com/showthread.php...rding-time
http://forums.nextpvr.com/showthread.php...rding-Time
http://forums.nextpvr.com/showthread.php...9-Crsshing

No errors are reported except when stopping a manual record I get an exception if nrecord or isn't recording. Rather than try to figure out what's going on at those 2 times I'd rather workaround it which should be a sure thing, I use the same sort of thing already for another program. Come to think of it, I can kill ntray.exe after a few seconds in the batch file.

I'm often using the computer at the time and a reboot would be an unnecessary annoyance.

Here it is if anyone else finds it useful. Just put in a text file and rename to .bat or .cmd and run as an administrator. I schedule it to start 5 minutes before primetime.

Code:
@echo off
tasklist /FI "IMAGENAME eq NRecord.exe" 2>NUL | find /I /N "NRecord.exe">NUL
if "%ERRORLEVEL%"=="1" "C:\Program Files (x86)\NPVR\NPVRServiceControl.exe" start
:: Comment next line with :: if you want the tray icon.
PING 127.0.0.1 -n 5 >nul & taskkill /f /im NTray.exe
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#4
2014-08-20, 08:55 AM
As I said in another thread a few days ago a nightly reboot for me eliminated all problems which caused failed recordings.
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#5
2014-08-27, 08:48 AM
Yes, I do this too. Around 0400, my script updates the EPG, backs up new recordings to the server, then reboots. Keeps things fresh.
- 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)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording service stopped or not running at scheduled time MattInetroit 3 1,984 2021-01-08, 12:03 AM
Last Post: mvallevand
  IPTV service called Joker TV quek9 9 6,194 2020-09-27, 08:23 PM
Last Post: quek9
  NextPVR Recording Service doesn't install from Services SamM 4 2,146 2020-08-02, 01:11 AM
Last Post: SamM
  How do I run the recording service as another user scotrich99 1 1,470 2020-07-28, 06:50 PM
Last Post: scotrich99
  Recording service not running at recording time Ricknextpvr 18 6,734 2020-03-26, 03:56 PM
Last Post: sub
  Trouble starting NextPVR Kiwa23 3 1,938 2020-03-26, 12:25 AM
Last Post: sub
  unable to communicate with recording service MaxOne72 9 3,558 2020-03-07, 11:59 AM
Last Post: Graham
  Nextpvr GUI and Service will not start bigbigblue 3 1,963 2020-02-18, 01:53 PM
Last Post: bigbigblue
  Cannot access NextPVR server after internet service change tskdrk 5 2,839 2019-12-17, 01:12 AM
Last Post: sub
  Rec service crashing when trying iptv streams that work in vlc pBS 30 7,777 2019-11-30, 04:27 AM
Last Post: pBS

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

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

Linear Mode
Threaded Mode