Batch file to Pause/Restart FAH

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
Rich
Posts: 3
Joined: Thu Oct 05, 2023 8:28 pm

Batch file to Pause/Restart FAH

Post by Rich »

Problem: I need to pause and resume FAH to run a system backup (otherwise I randomly get a pile of "File not found" msgs.).

This old thread points to a batch file but is incomplete. I can't find a list of commands ("viewtopic..." is meaningless to me). I understand Batch files in Windows.
====================
" FoldingFodder wrote:
...Instruct it to run/pause - certain times of the day and if certain applications are running...

Currently, there's no intelligence in the client to detect what application is running and modify it's behavior. Best case is you have a batch file which sends the pause command and another one with the unpause command: viewtopic.php?f=89&t=33296"
===================

System Win 11, FAH Client 7.6.21

Any help appreciated.

Richard
calxalot
Site Moderator
Posts: 894
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Batch file to Pause/Restart FAH

Post by calxalot »

Code: Select all

FAHClient --send-pause
FAHClient --send-unpause
FAHClient --send-finish
FAHClient --help
FAHClient --send-command help
Edit: sorry, my phone insisted on creating em dashes
Rich
Posts: 3
Joined: Thu Oct 05, 2023 8:28 pm

Re: Batch file to Pause/Restart FAH

Post by Rich »

Thanks!

Is that a "--" (double dash)?

Richard
Joe_H
Site Admin
Posts: 7870
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Batch file to Pause/Restart FAH

Post by Joe_H »

Old links in the forum were broken when it was transferred to a new host and to a new version of the forum software in April '22. That "viewtopic" is a partial link that should be viewtopic.php?f=89&t=33296. Any of the partial links can be appended to https://foldingforum.org/ and will connect to the original post or topic as long as it still exists on the forum.

And yes, that is a double dash.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Rich
Posts: 3
Joined: Thu Oct 05, 2023 8:28 pm

Re: Batch file to Pause/Restart FAH

Post by Rich »

Thanks Joe, and that answers my Q about -- or?... it is a --.
Problem solved.
Richard
Post Reply