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 … 116 117 118 119 120 … 433 Next »
Client problems

Client problems
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#11
2016-09-27, 08:27 PM
Graham Wrote:Nice try but it won't work. The FOR command is saying ... Run the batch command at "in (blah -bling)" and examine the messages that the command would have sent to the screen ... In my silly example, it is as if we ask the FOR to run the command "blah" with a parameter of "-bling" ... This is only useful if the "blah" command is programmed to recognise and respond to the parameter "-bling".

Sadly, comskip is not programmed to recognise the parameter "-isinuse".
I was afraid of that. The string for NSHelper didn't make sense to me. Is there a way to query the system to see if the process "comskip.exe" is still running? (That's what I look at in Task Manager if I want to make sure that comskip isn't running before a manual reboot).
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#12
2016-09-27, 09:25 PM
HarryH3 Wrote:Is there a way to query the system to see if the process "comskip.exe" is still running?

I am sat on the sofa (watching tv as it happens) So this is a quick untested guess ... in bat file, before comskip, SET /a comskipactive = comskipactive +1 and after comskip SET /a comskipactive = comskipactive - 1 ... This might allow reboot bat file to have a IF comskipactive = 0 to test if comskip is inactive ... I have guessed the syntax ... I use ss64.com for info on batch commands.
p37307
Offline

Senior Member

Posts: 252
Threads: 46
Joined: Jul 2016
#13
2016-09-28, 02:02 AM
Couldn't you do a tasklist find comskip and put it to sleep for 200 seconds and then recheck and when it is done, continue the script like I do to make limit the number of tasks for Handbrake transcoding? (Not sure if I got this code here or another site for Handbrake.


:CHK_HANDBRAKE
REM Loop until no HANDBRAKE processes are running
tasklist | find /c "Comskip" > c:\Users\Public\NPVR\Scripts\Loop\%OID%.post.txt
set /p count= <c:\Users\Public\NPVR\Scripts\Loop\%OID%.post.txt
if %count% geq 3 (
::echo ...%count% HandBrakeCLI running now, waiting 200 secs >> %waiting%
::Call :LOGMSG3 %FILENAME% Waiting, things too busy
sleep 200
goto :CHK_HANDBRAKE
)
del c:\Users\Public\NPVR\Scripts\Loop\%OID%.post.txt

:: EX: Place your system specific commands here...


Couldn't you do a tasklist find comskip and put it to sleep for 200 seconds and then let it recheck and when it is done, continue the script like I do to make limit the tasks for Handbrake transcoding? In my example, 3 Handbrake tasks can be open and postprocessing checks every 200 seconds before allowing the completed recording to move on to Handbrake.

I'm not a coder so can't help you figure the actual task find script.
~Paul

If you haven't broken it at least once, you're not doing it right. :eek:
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#14
2016-09-28, 02:10 AM
Here you go

Code:
tasklist /nh /fi "imagename eq comskip.exe" | find /i "comskip.exe" > nul
echo %errorlevel%

%errorlevel% will be 0 if it is running

Martin
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#15
2016-09-28, 03:03 PM
mvallevand Wrote:Here you go

Code:
tasklist /nh /fi "imagename eq comskip.exe" | find /i "comskip.exe" > nul
echo %errorlevel%

%errorlevel% will be 0 if it is running

Martin

Thanks Martin! Like most things in life, it's easy when you know how. Smile
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  NLite Client on Raspberry Pi cweseloh 16 5,104 2024-10-23, 01:59 PM
Last Post: fla
  Client trouble Jzzhn 2 1,521 2020-08-31, 05:41 AM
Last Post: Jzzhn
  NextPVR Client Rendering NumberFive 1 1,550 2020-07-28, 10:17 PM
Last Post: NumberFive
  Client Hang artmetz 4 2,249 2020-06-07, 09:14 PM
Last Post: sub
  Nvidia Shield TV - Android client / Kodi client. mkotas 9 4,424 2020-01-28, 10:58 AM
Last Post: mkotas
  Cant disable nextpvr as a client eastavin 5 2,637 2019-11-01, 02:57 AM
Last Post: eastavin
  Colossus Audio Track Problems SilverTiger 3 1,664 2019-09-30, 11:51 PM
Last Post: SilverTiger
  Play back of recording from client PC hangs up dcl 5 2,048 2019-09-15, 10:46 PM
Last Post: mvallevand
  Npvr act as client spudjg1 1 1,391 2019-06-16, 11:09 AM
Last Post: spudjg1
  NextPVR client / server set up EiEiOhh 3 2,281 2019-06-02, 06:01 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode