A tip for OS X shell scripts is to put a .command after the filename of a
script. This will make the script double-clickable. The attached script
will start the server on OS X in user mode if the current user has write
permissions to the witangoevents.log file.
My advice to any OS X user is to learn a little unix and especially how to
write shell scripts. You can write them in any text editor (BBEdit) that
will save files with unix line endings. Apple have provided some real gems
deep down in the OS like osascript, nicl, etc. With osascript for example
you can do things like and call it from the external action:
/usr/bin/osascript -e 'Tell application "Finder"' -e 'open folder "Server"
of folder "Witango" of folder "Applications" of startup disk' -e 'end tell'
I can recommend the geeks book and if you want to read more on the unix
commands in OS X just use "man" in the terminal. E.g. man osascript
Phil
On 20/3/03 4:18 AM, "Michael Dittbrenner" <[EMAIL PROTECTED]> wrote:
> I have a MacOSX for Unix Geeks e-book and the Mac OSX v10.2 Jaguar ebook if
> anyone is interested I can put that up just let me know.
>
> Michael Dittbrenner
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body#!/bin/sh
##
# Witango Application Server server
##
echo "Starting Witango Server in user environment"
ODBCINI=/Library/ODBC/odbc.ini
export ODBCINI
/Applications/Witango/Server/witangod -u >>
/Applications/Witango/Server/configuration/witangoevents.log &
ps -aux | grep witangod
echo "Witango Server started"