Apps :: nirc & sudo



Hi all,

I'm tryin' to make work this command line at boot.

Code Sample

sudo -u dsl screen -dmS irc nirc


I putted the script in the /etc/init.d/ folder and i did update-rc.d.

The problem is that nirc executed with the script at boot don't load the settings of .nircrc :(

i tried to load the script after the login and works....
I really don't know where the problem is :(

Is it possible set nirc with an external config ? :)

Something like nirc --input-config=/.config :D

ThanX for the help :)

Is user dsl being logged in automatically?  If so, put the command in /home/dsl/.bash_profile (without the "sudo" part).  Boot scripts are not really intended to run user commands.

original here.