Ecco qui il mio file rc.local, continua a non funzionare. Idee?
/WI/WI è ovviamente la mia CGI da eseguire all'avvio del sistema, che non viene lanciata da apache perchè ha un web server integrato ed è realizzato con raudus/lazarus.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#lancio l'interfaccia web sammarco all'avvio del sistema
export DISPLAY 0:0
echo $DISPLAY
/WI/WI > /WI/exec.log 2>&1 !! echo "errore" >> /WI/rclocal.log
exit 0
prova così
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#lancio l'interfaccia web sammarco all'avvio del sistema
DISPLAY=:0.0; export DISPLAY
date >>/WI/exec.log
echo $DISPLAY >> /WI/exec.log
/WI/WI > /WI/exec.log 2>&1 !! echo "errore" >> /WI/rclocal.log
exit 0
però ancora non mi è chiaro perchè un cgi dovrebbe accedere al display...
potrebbe essere che al lancio scrive qualcosa sullo standard output ma, con la redirezione che abbiamo messo, il tutto dovrebbe finire in un file e il display non dovrebbe essere chiamato in causa.
secondo me è il caso di chiedere al supporto raudus se sanno cosa potrebbe essere.