NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 166 167 168 169 170 … 1231 Next »
UpdateEPG in System session...

 
  • 0 Vote(s) - 0 Average
UpdateEPG in System session...
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#1
2009-02-22, 04:30 PM
I know this is a terribly overworked issue but...

How can I test, on demand, an EPG update, that calls the UpdateEPG.bat in the System session (NOT interacting with desktop)?

I'm reworking my tools, and to date they've depended on 'Interacting with Desktop' and I wanna stop that...

I've tried Updating the EPG from the Capture Sources in Config, From the GUI in System, from right-clicking the tray icon.. All of them launch the UpdateEPG.bat in Desktop session.

Of course if I wait to the Update Time, then it does launch, but then while testing, it's a real waiting game.

I'd like to be able to trigger it manually and instantly

I really thought that one of the other methods did that already, but it doesn't seem to be happening for me...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,705
Threads: 767
Joined: Nov 2003
#2
2009-02-22, 04:36 PM
You cant trigger one to start instantly. Pretty much all you can do is set the EPG update hour in the config app to the current hour, then ok out causing recording service to restart, then wait a few minutes for it to start. You can do this a lot of times in an hour though.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#3
2009-02-22, 05:07 PM
sub Wrote:You cant trigger one to start instantly. Pretty much all you can do is set the EPG update hour in the config app to the current hour, then ok out causing recording service to restart, then wait a few minutes for it to start. You can do this a lot of times in an hour though.

Thanks.
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2009-02-22, 07:32 PM (This post was last modified: 2009-02-22, 07:44 PM by pBS.)
i bet it'll work if you use cmd line "pvrx2 -updateepg" as a custom task...
then you could do it anytime manually...Big Grin
[it works for me to get net access for service account by connecting with batch]
enables both EWA and PCH/MVP network access..Smile
custom tasks are run by service and hence get service account...

problem with not having it on is, most users of ir blasters won't be able to change channels without 'interact w/desktop'..
i'll see if i can change that now that i can get net access without it...
[at least for HIP users, working on new hipwsend alternative that doesn't use clipboard]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#5
2009-02-23, 12:08 AM
So this is probably the best place to continue this thought, though it's mostly a dev problem.

First, ZProcess and UltraXMLTV Enhancer users have trouble when trying to run when the Recording Service without interacting with desktop. Indeed, the reason I haven't cared all that much is that I also have IR software that needs the interacts with desktop.

One work around was to have my apps check and set the service to Interact, but that hasn't worked completely correctly. Rather than Fixing the workaround, I was planning on making my apps work in the System Account...

In my VB6 ways, (quite sloppy actually) I used to do my math (and stuff) like:

Code:
Val(textbox1.text) + Val(textbox2.text) = Textbox3.text

Of course this means that the textboxes need to exist, and as I understand it, in SYSTEM account, form elements are not created...

So I am reworking Ultra to work with classes, arrays and variables, and only output to form elements to give progress etc and interaction.

Now, Ultra snags when it runs in SYSTEM, and of course that means I need a lot more logging to find the issue, but I'll bet it's still related to something with a form element.

As I start to research, I have discovered I don't know the terminology to effectively research this... I was hoping to add some code to the form_load event,

Code:
If In_SYSTEM_Session() = true then 'don't do any form elements, and stop erroring, and leave me be...'
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#6
2009-02-23, 12:14 AM
pBS Wrote:i bet it'll work if you use cmd line "pvrx2 -updateepg" as a custom task...
then you could do it anytime manually...Big Grin
[it works for me to get net access for service account by connecting with batch]
enables both EWA and PCH/MVP network access..Smile
custom tasks are run by service and hence get service account...

problem with not having it on is, most users of ir blasters won't be able to change channels without 'interact w/desktop'..
i'll see if i can change that now that i can get net access without it...
[at least for HIP users, working on new hipwsend alternative that doesn't use clipboard]

When I do this (after setting the RS to NOT interact) the Update routine still launches in the current Desktop session...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2009-02-23, 09:51 PM (This post was last modified: 2009-02-23, 11:10 PM by pBS.)
yea, i noticed that too...
but i did manage to make a HIP blaster that doesn't need 'interact w/desktop' checked...Big Grin using the web server...and it's actually faster than hipwsend! lol
basically just have to start the web listener in HIP preferences and this util can blast from any account and without 'interact' checked...even from another machine! basically just a http query that kicks off the hip commands...simple...

now upgrades won't cause me to miss shows cuz i forgot the re-check 'interact' on the service...Big Grin

i should be releasing it soon, just need to add a few extra command line opts..

i think the custom tasks are run as a network_user because it's invoked from a user app. and not service, so slightly different..
to run something as the service, it has to be a timed thing run from the service itself..
or some way to signal the service to kick it off..
i find restarting the rec service during the update hour usually kicks it off within a minute or so..so that should be useable..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#8
2009-02-23, 10:50 PM
zehd Wrote:
Code:
If In_SYSTEM_Session() = true then 'don't do any form elements, and stop erroring, and leave me be...'
I'm not sure what you're trying to achieve as I don't use either of the tools but are you saying that...

You have UltraXMLTV Enhancer being run from the UpdateEPG.bat file and that it uses Form components but, because the rec. service is run as LocalSystem which doesn't like forms, you have to have the rec. service set to interact with the desktop?

If so, why not have a command-line option such as -q (quiet). In the Main() method do the following
Code:
static void Main(string[] args)
{
    if (args[0].ToLower() == "-q")
        DoNonFormStuff();
    else
        DoFormStuff();
}
That way you don't need to test for which account the application is running as, you just need to make sure users use the -q switch in UpdateEPG.bat.

Or did I get the wrong idea?

Cheers,
Brian
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#9
2009-02-24, 12:02 AM
bgowland Wrote:I'm not sure what you're trying to achieve as I don't use either of the tools but are you saying that...

You have UltraXMLTV Enhancer being run from the UpdateEPG.bat file and that it uses Form components but, because the rec. service is run as LocalSystem which doesn't like forms, you have to have the rec. service set to interact with the desktop?

If so, why not have a command-line option such as -q (quiet). In the Main() method do the following
Code:
static void Main(string[] args)
{
    if (args[0].ToLower() == "-q")
        DoNonFormStuff();
    else
        DoFormStuff();
}
That way you don't need to test for which account the application is running as, you just need to make sure users use the -q switch in UpdateEPG.bat.

Or did I get the wrong idea?

Cheers,
Brian

Well, It actually did get sorted. I was right and as long as my 'thinking' didn't require the existence of a form element, then No One really cared of the form elements were created or not... So I was lucky that I didn't need to test like your sample...

You are right about the problem that I was having.

And on the original idea of this thread, if I start having more troubles, where I need to launch the app in LocalSystem often (for dev), I have started writing a client/server (as localsystem service) app that will receive a filespec string and lanch what I want in Local System...

That should prove handy when I start working on ZProcess 3
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  recording service locks up - have to restart whole system StevHodge 8 3,624 2010-10-17, 07:38 PM
Last Post: johnsonx42
  Help with updateEPG.bat? Seems to run in a loop, unpredictable aberson 4 1,960 2010-08-23, 07:56 PM
Last Post: sub
  No sound on PVR500's recordings in multi card system ericbiermann 0 1,053 2010-05-04, 08:50 PM
Last Post: ericbiermann
  ATSC LiveTV and comskip on same server/client system? linene 2 1,537 2010-03-07, 09:31 PM
Last Post: linene
  Sync recordings db with file system? Barsk 9 2,754 2010-01-11, 03:46 PM
Last Post: sub
  Unexpected error sending frame: System.ObjectDisposedException: Cannot access a dispo agh! 0 1,094 2009-12-22, 05:50 PM
Last Post: agh!
  Error message: "Sorry, this system does not support the required VMR9 video render." bobsmith 10 8,265 2009-12-22, 05:21 PM
Last Post: liteswap
  Services, System Tray, & Recording temporos 1 1,211 2009-11-21, 11:30 PM
Last Post: whurlston
  Ideal system sheppy99 15 4,323 2009-11-10, 05:49 PM
Last Post: gEd
  Sorry, this system does not support the required VMR9 Video Render. ConXtionS 4 1,786 2009-10-17, 12:38 PM
Last Post: ConXtionS

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

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

Linear Mode
Threaded Mode