Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Terminal shell script close file daemon

Featured Replies

I need to AppleScript the closing of served files when the power fails. My power supply can trigger an AppleScript which can call a Terminal shell script that can close the files, to allow an elegant shut down when needed. I can do all but the last step, I have no UNIX training and wonder if anyone else has done this to help me along.

  • 4 weeks later...
  • Newbies

#!/bin/sh

/usr/bin/fmsadmin stop

the above run as a shell script will shutdown the databases (giving clients 30 seconds to disconnect, by default) and stop the server.

if you need other options (messages to clients, more/less time before disconnect, etc.) type

fmsadmin HELP stop

at the command line on your server.

just put the two lines at the top in a text editor (make sure it's text only, not RTF or something), such as vi or BBEdit. call it somethign like shutdown.sh, then, at the command line, do:

chmod +x shutdown.sh

to make it executable

if you need to make it a double-clickable type file (I'm not sure how applescript works and what it needs), call it shutdown.command, then do a command-i (get info) on the file, check hide extension if you want, and change Open with: to Terminal.

-rich

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.