[erlang-questions] Report errors when using "-detached" option
Michael McDaniel
erlangy@REDACTED
Wed Nov 12 23:48:18 CET 2008
On Wed, Nov 12, 2008 at 10:52:05PM +0100, ERLANG wrote:
> Hi Michael,
>
>> If I use -detached and want to start from scripts (on Linux),
>> I use something like...
>>
>> ------------
>> export LOGS=/some/path/to/logs
>>
>> if ! $(test -d ${LOGS}) ; then
>> echo "directory ${LOGS} does not exist"
>> exit
>> fi
>>
>> ...
>> ------------
>>
>
> Maybe I wasn't clear enough. The directory was just an example ;-)
> Suppose your application failed to start for some reason. The reason
> here isn't important at all.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
then I use application:start(sasl) in my program, and then use rb for
looking at all the reports (from an erl shell)
~Michael
>
>
>> to check for directories or files (run 'man test' for all the flags).
>> I do not know about MS Windows.
>
> Anyway, thanks.
>
> Regards
> Y.
--
Michael McDaniel
Portland, Oregon, USA
http://autosys.us
More information about the erlang-questions
mailing list