
Quiero iniciar automáticamente un script de shell y por eso agregué esta línea a mi /etc/profile
:
/bin/su -c "/path/to/my/script" user -
el script en sí inicia un comando de shell xterm y genera el siguiente error durante el inicio automático:
xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
=> si inicio manualmente el script xterm no tengo problemas
¿Cómo puedo solucionar este problema?
Respuesta1
Agregué el script para ~/.bash_profile
resolver el problema por mí. No es necesario ningún cambio de usuario. (Gracias a @usuario2965433)
Así que simplemente agrega:
/path/to/my/script
al ~/.bash_profile
del usuario deseado.