#Running in the background

1 messages · Page 1 of 1 (latest)

pseudo flare
#

Hey guys, hope someone can advise me. I got a free ubuntu server with Oracle and I managed to get PMM installed and running. I myself am on a Windows PC and I used Putty to connect to the Ubuntu Server.

If I close my putty session, will PMM continue to run ?

toxic spearBOT
#

Please complete #938455615741775902 and someone from the community or one of our <@&938443185347244033> members will respond when they're available.

Including the meta.log from the beginning is a huge help use !logs for more information.

marble swallow
#

How are you running it?

pseudo flare
#

Hi, I ran "python plex_meta_manager.py -r" via putty to the remote server

marble swallow
#

Then, no, it won't continue when you close the ssh session.

pseudo flare
#

How can I run it so I can close the session ?

marble swallow
#

Simplest would be to run it in a screen.

#

type:

screen

hit return to dismiss the welcome message

type your command:

python plex_meta_manager.py -r

type control-a, d to send the screen to the background.

close the session.

When you log back in, screen -r will bring it back to the foreground.

#

You can't send the current instance to the background as it's running.

pseudo flare
#

Oh awesome, let me try that, ty so much

marble swallow
#

Just in case you're not aware, this command:

python plex_meta_manager.py -r

is going to run PMM just the one time.

pseudo flare
#

is there a way I can get it to run like once a week ?

#

The screen command works great thanks !

marble swallow
#

The default behavior [if you were to leave that -r off] is to wake up once a day at 5AM to do its thing. If you want to schedule it less often that, there are details in the wiki:
https://metamanager.wiki/en/latest/home/guides/scheduling.html

If you want to keep it daily but change 5AM to some other time or times, you can do with runtime flags:
https://metamanager.wiki/en/latest/home/environmental.html#time-to-run

If you want to schedule different aspects to happen on different schedules, individual things [collections, operations] can be scheduled:
https://metamanager.wiki/en/latest/metadata/details/schedule.html

That last depends on the script running at the scheduled time; such a schedule won't start PMM.