#Running in the background
1 messages · Page 1 of 1 (latest)
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.
How are you running it?
Hi, I ran "python plex_meta_manager.py -r" via putty to the remote server
Then, no, it won't continue when you close the ssh session.
How can I run it so I can close the session ?
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.
Oh awesome, let me try that, ty so much
Just in case you're not aware, this command:
python plex_meta_manager.py -r
is going to run PMM just the one time.
is there a way I can get it to run like once a week ?
The screen command works great thanks !
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.