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 … 152 153 154 155 156 … 433 Next »
Show CMD window while executing PostProcessing.bat

Show CMD window while executing PostProcessing.bat
uspino
Offline

Junior Member

Posts: 25
Threads: 6
Joined: Jan 2014
#1
2015-12-08, 10:35 AM
I've set up a rather complex script to run as PostProcessing.bat. It basically extracts closed captions as an SRT file, compresses the TS file to MP4 with subtitles, uploads the resulting file to an FTP server and moves everything to a NAS when done. This all happens in the background because I've found no way to bring up the CMD screen while the processing is being executed. Is there a way to either show that screen and close it when all is done, or at least log everything into a LOG file?

Thanks.
dixxfixx
Offline

Member

Posts: 149
Threads: 5
Joined: Nov 2007
#2
2015-12-08, 12:30 PM
These two pages give a pretty good description of how to redirect batch file output to make a log file:

http://www.robvanderwoude.com/battech_redirection.php
http://www.robvanderwoude.com/redirection.php

As far as making the CMD window show, someone good at it needs to answer that, because I always thought it showed unless you did something special to prevent it.
WinXP SP3 A8V-X Athlon 64 FX-60 2.60GHz 2GB
NextPVR 3.4.8
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#3
2015-12-08, 02:50 PM
dixxfixx Wrote:... I always thought it showed unless you did something special to prevent it.
PostProcessing and other batch files run in the context of the Recording Service under the System user account. The System user account has no "connection" to the console screen so nothing is displayed.

I expect that you can do "nrecord -RUN" to get the recording serviice running in the logged on user account for testing purposes. I have always used console redirection to a log file to see what going on in batch files. Or you can create a batch file that calls the postprocessing batch file and passes the same params as nrecord would pass.
dixxfixx
Offline

Member

Posts: 149
Threads: 5
Joined: Nov 2007
#4
2015-12-08, 03:05 PM
Thanks, Graham! See? That's what I mean by "someone good at it".
WinXP SP3 A8V-X Athlon 64 FX-60 2.60GHz 2GB
NextPVR 3.4.8
uspino
Offline

Junior Member

Posts: 25
Threads: 6
Joined: Jan 2014
#5
2015-12-08, 05:46 PM
dixxfixx Wrote:Thanks, Graham! See? That's what I mean by "someone good at it".

More like "someone too good at it" Smile Thanks Graham! That's pretty much all I needed to know.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#6
2015-12-08, 09:22 PM
I've run round this circle in the past - debugging scripts run under the SYSTEM account......

You can use PsExec to open a CMD window as the system user and manually run your batch files as this user to see what is going wrong. (usually permissions or ownership) available from https://technet.microsoft.com/en-us/sysi...97553.aspx

Code:
C:\Users\martin\Desktop>psexec -i -s cmd

PsExec v2.11 - Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals - [url]www.sysinternals.com[/url]

This will open another cmd window


Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>whoami
nt authority\system

C:\Windows\system32>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,918
Threads: 956
Joined: May 2006
#7
2015-12-08, 11:41 PM
Use caution when redirecting console and error output to a log file since multiple postprocessing.bat scripts could run in parallel.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  2020 TV Guide Doesn't Show up rmahlberg 14 9,315 2020-01-04, 06:43 PM
Last Post: sub
  EPG showing "no show details" for mapped channels iameric 3 2,405 2019-12-17, 12:00 AM
Last Post: iameric
  postprocessing batch to escape special characters donbrew 3 1,724 2019-11-06, 11:29 PM
Last Post: JavaWiz
  PostProcessing.bat not executing MiyoshiSaki 13 4,637 2019-09-03, 10:36 PM
Last Post: sub
  Watching Currently Recording TV Show. Play stops. acegolfer 15 4,579 2019-08-26, 12:36 AM
Last Post: mvallevand
  Replaced colossus - now "no show details" SilverTiger 7 2,231 2019-06-12, 11:15 AM
Last Post: SilverTiger
  No Show Detail on TV Guide Crosby87 3 2,335 2019-03-06, 02:49 AM
Last Post: sub
  Display "waiting" to show next frame + no display output. GuruSR 7 2,215 2019-03-05, 03:00 AM
Last Post: sub
  Issue with Beast IPTV recording - Skipping + Doesn't record full show abrupt ending russmehta01 3 3,010 2019-02-26, 09:20 PM
Last Post: sub
  Any tips or tricks to improve (reduce pixelation) recorded show playback mattman1968 8 3,268 2019-02-20, 02:07 PM
Last Post: mattman1968

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

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

Linear Mode
Threaded Mode