[erlang-questions] Report errors when using "-detached" option

ERLANG erlangy@REDACTED
Wed Nov 12 22:52:05 CET 2008


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.


> to check for directories or files (run 'man test' for all the flags).
> I do not know about MS Windows.

Anyway, thanks.

Regards
Y.



More information about the erlang-questions mailing list