Copy and save the shell script below in your xTuple Connect
Batch Manager admin user's home directory as
startbm.command. This is the shell script that will
be launched when the admin user is automatically logged in.
You will need to edit the first six parameters to match your environment.
#!/bin/bash # Autostart of BatchManager for macOS # Name this file 'startbm.command' and put it your user's home directory. # To start the BatchManager in macOS upon Login, create a Login Item for a user that will # log in upon system startup. # Navigate to [Apple] > System Preferences > Users and Groups > [your user] > Login Items, and add 'startbm.command' to the list. ################################################### ## EDIT NEXT SIX LINES TO MATCH YOUR ENVIRONMENT ## ################################################### BM_PATH='/Applications/BatchManager.app/Contents/MacOS/' DB_SERVER='192.168.0.100' DB_NAME='mydemodb' DB_PORT='5432' DB_USERNAME='myuser' DB_PASSWD='mypassword' ################################# ## DO NOT EDIT BELOW THIS LINE ## ################################# DB_URL=psql://$DB_SERVER/$DB_NAME:$DB_PORT $BM_PATH/BatchManager -databaseURL=$DB_URL -username=$DB_USERNAME -passwd=$DB_PASSWD & exit