[erlang-questions] SASL problem

Carlo Bertoldi <>
Thu Jun 30 16:00:55 CEST 2011


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




More information about the erlang-questions mailing list