[erlang-questions] SASL problem

Siri Hansen erlangsiri@REDACTED
Thu Jun 30 16:26:35 CEST 2011


Hi Carlo!

Your script works for me, but it seems from the error report that the double
quotes around the log file path have disappeared in your case. You could try
to increase the number of backslashes - e.g. to three:

... -sasl sasl_error_logger "{file,
\\\"/home/itadm/erlang/log/prototipo_mps_sasl.log\\\"}" ...

Regards
/siri


2011/6/30 Carlo Bertoldi <carlo.bertoldi@REDACTED>

> Hello everybody,
>  I'm trying to launch my application using heart. This is the script I'm
> using:
>
> #!/bin/bash
>
> EBIN_PATH=/home/itadm/**prototipo_mps/ebin
> LOG_FILE=/home/itadm/erlang/**log/sonda.log
> ERL=/usr/bin/erl
> NODE_NAME=sonda
>
> $ERL -sname $NODE_NAME -heart -pa $EBIN_PATH -boot start_sasl -sasl
> sasl_error_logger "{file, \"/home/itadm/erlang/log/**prototipo_mps_sasl.log\"}"
> -noshell -eval "application:start(prototipo_**mps)." 2>&1 > $LOG_FILE &
>
>
> The application starts, but in the log I've got this error, and I can see
> that the sasl keeps restarting.
>
>
> =ERROR REPORT==== 30-Jun-2011::15:36:46 ===
> application_controller: syntax error before: '/': {file,
> /home/itadm/erlang/log/**prototipo_mps_sasl.log}
> {"init terminating in do_boot",{error,'Bad environment variable: "{file,
> /home/itadm/erlang/log/**prototipo_mps_sasl.log}"  Application: sasl'}}
>
>
> =erl_crash_dump:0.1
> Thu Jun 30 15:52:32 2011
> Slogan: Kernel pid terminated (application_controller)
> ({application_start_failure,**kernel,{shutdown,{kernel,**
> start,[normal,[]]}}})
> System version: Erlang R14A (erts-5.8) [source] [64-bit] [smp:4:4] [rq:4]
> [async-threads:0] [kernel-poll:false]
>
> If I launch the application using the shell, it works as expected. Any
> suggestions?
> Thanks,
>  Carlo
>
> ______________________________**_________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110630/f854b885/attachment.htm>


More information about the erlang-questions mailing list