Page 1 of 1
Run folding overnight?
Posted: Fri Nov 12, 2021 9:43 pm
by lewis42
I've been folding for a while now on my mac. I start the web client at the end of my work day and stop it again in the morning.
I've moved that computer into a cupboard and I'd like to set the start/stop to happen automatically.
I'm fairly sure that is possible, but I can't find any examples on how to do it.
If anyone has instructions or even can point me in the right direction of what terminal commands I should run I can figure out the rest, it's just how to start/stop folding from command line I'm stuck on.
Thanks in advance
Lewis
Re: Run folding overnight?
Posted: Sat Nov 13, 2021 1:28 am
by aetch
Windows -
https://foldingathome.org/support/faq/i ... on/?lng=en
Linux -
https://foldingathome.org/support/faq/i ... ns/?lng=en
Mac -
https://foldingathome.org/support/faq/i ... ns/?lng=en
Note - The vast majority of us fold 24/7 so don't have a need to automatically start/stop the client.
Re: Run folding overnight?
Posted: Sat Nov 13, 2021 5:10 am
by calxalot
Code: Select all
FAHClient —send-pause
FAHClient —send-unpause
Re: Run folding overnight?
Posted: Sun Nov 14, 2021 12:49 am
by MeeLee
You'll probably have to run the command automatically at a specific time.
You can run an .sh file (with executable enabled), and use the at command:
https://www.linuxjournal.com/content/sc ... -unix-tool
I have no experience on making it run automatically from boot, but I'm sure you can figure it out with a little browsing.
Re: Run folding overnight?
Posted: Sun Nov 14, 2021 2:10 pm
by lewis42
I saw this, but it doesn't actually answer my question, and the man page is super long and doesn't actually mention `—send-pause` or `—send-unpause`. It's good to know I'm an edge case though, thank you. I wonder if more people would run folding if there was a one click way to just have it run overnight. In my experience the "don't run when I'm using my computer" option in the web ui doesn't work on the macOS version. I'm probably an edge cases being on macOS TBH.
calxalot wrote:Code: Select all
FAHClient —send-pause
FAHClient —send-unpause
Perfect, thank you!
MeeLee wrote:You'll probably have to run the command automatically at a specific time.
Although I haven't done it before, I'm confident I can figure this bit out, thank you
![Smile :)](./images/smilies/icon_smile.gif)
From my basic research, the macOS way to do this is with `launchd` and Lingon X seems to be the recommended GUI for interfacing with it.
Thanks everyone, this is a great community.
Re: Run folding overnight?
Posted: Mon Nov 15, 2021 1:18 am
by calxalot
For FAHClient on macOS, idle is when the computer turns off the display, or when the login window is showing.
Re: Run folding overnight?
Posted: Wed Nov 17, 2021 1:05 pm
by gunnarre
There are many ways to schedule things in MacOS, from launchd to cron. MacOS does have a traditional crontab if that's what you want to use.
Re: Run folding overnight?
Posted: Thu Nov 18, 2021 10:29 am
by lewis42
calxalot wrote:For FAHClient on macOS, idle is when the computer turns off the display, or when the login window is showing.
I should try this again as perhaps I misunderstood the UI. I thought I had it set to "idle only" and it ran anyway.