shell scripting
Could any one please suggest me on which boot level or /etc/rc.x folder should I include my shell script so that it runs automatically immediately after login or just before the system prompts for login in Ubuntu LTS 12.04
Thanks |
/etc/rc2.d
|
user specific scripts should be put into ~/.bashrc or ~/.bash_profile, not into /etc/rc2.d, see man bash and invocation. Please specify what do you want to achieve
|
Quote:
|
you should install a display manager (like gdm3 or lightdm), that will be put into /etc/rcX.d
|
This is helpful for understanding bash startup scripts: http://lfs.mirrors.poorlymade.org/bl...s/profile.html and the order they run in.
|
There're lot of ways to autostart scripts. Read this wiki page too for understanding.
|
All times are GMT -5. The time now is 06:08 AM. |