NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
1 2 3 4 5 … 111 Next »
Probably for SUB?

 
  • 0 Vote(s) - 0 Average
Probably for SUB?
jrockow
Offline

Senior Member

Posts: 742
Threads: 118
Joined: Nov 2005
#1
Yesterday, 03:12 PM
I know you don't like getting involved with batch files, so I'm only including the command that's relavant.

"C:\Program Files\PuTTY\plink.exe" -ssh -pw ????? user@IPaddress ls "/usr/local/bin/  > /volume1/Volume_1/PostBatchLog.txt" > "C:\users\john\PostBatchLog.txt"

It's a simple command to output a directory from my NAS.

If I put this command in PostCancel.bat, and execute the batch file directly in windows, it works fine.
If I have it run automatically after canceling a recording it doesn't work.
BrettB
Online

Posting Freak

Saint Paul, MN, USA
Posts: 2,742
Threads: 173
Joined: Jun 2007
#2
10 hours ago
(Yesterday, 03:12 PM)jrockow Wrote: If I have it run automatically after canceling a recording it doesn't work.

Why don't you post a set of logs (from the button on the settings page) covering a recording cancellation which you think is not working properly?
jrockow
Offline

Senior Member

Posts: 742
Threads: 118
Joined: Nov 2005
#3
9 hours ago
(10 hours ago)BrettB Wrote:
(Yesterday, 03:12 PM)jrockow Wrote: If I have it run automatically after canceling a recording it doesn't work.

Why don't you post a set of logs (from the button on the settings page) covering a recording cancellation which you think is not working properly?

The particular command I posted isn't acting on a specific  recording, it's just listing a directory on my NAS box.
I didn't want to post the contents of the entire batch file and make it more confusing.

It seems as though whatever mechanism sub uses for post processing, it doesn't like that command.
If he can't easily reproduce the problem I'll send whatever logs he wants.
jrockow
Offline

Senior Member

Posts: 742
Threads: 118
Joined: Nov 2005
#4
8 hours ago (This post was last modified: 7 hours ago by jrockow.)
I just realized I added the PostBatchLog.txt twice.
It should have read"

"C:\Program Files\PuTTY\plink.exe" -ssh -pw ????? user@IPaddress ls "/usr/local/bin/ > /volume1/Volume_1/PostBatchLog.txt"

I'm guessing the problem has to do with the placement of the quotes?
I've tried several variations.
Bobins
Offline

Posting Freak

UK (North West)
Posts: 1,356
Threads: 145
Joined: Sep 2004
#5
5 hours ago
In the end postcancel.bat is just a batch file executed with the authority/permissions under which NPVR is running.
Your quotes placement looks fine to me for creating the output file on the NAS.
Key thing is any error messages when you say "it doesn't work" and contents of NPVR logs during the cancel process.

Ray
NPVR Version= 7.0.4.251215
AMD Ryzen 5 7600X + 16GB DDR5 in Gigabyte B850 Gaming Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
jrockow
Offline

Senior Member

Posts: 742
Threads: 118
Joined: Nov 2005
#6
3 hours ago
Here are the log files.

The PostCancel.bat file only contains the line of code I posted.
After canceling a recording there is no PostBatchLog.txt file created.

If I execute the batch file directly in Windows the log file is created with the contents listing all the files in the  /usr/local/bin/  directory.


Attached Files
.zip   logs-20260418-2002.zip (Size: 260.34 KB / Downloads: 1)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode