Hi
does linux supports automatic executable file as like windows support autoexec.bat file???I want to run one application aytomatically when linux boot.
Please reply with details
vineeta7
Printable View
Hi
does linux supports automatic executable file as like windows support autoexec.bat file???I want to run one application aytomatically when linux boot.
Please reply with details
vineeta7
Well, the entire linux world works like Lego..
So yea.. ^^
there are Lots of initscripts.
Linux works with Run Levels.
level 0 is off
level 3 is multiusr Console
level 5 is X11
level 6 is reboot.
well there is a folder If I recall correctly /etc/inittab/
there are files
rc1 etc.
They are the bootscripts and the runlevels.
Well there is also a bootscript for when X11 starts and a bootscript for when Fluxbox, KDE or Gnome starts
Well Google for Bootscript and you find your answer..
Hope that helps
place the executable in your .profile file.
so that everytime user logs in it will be executed ...
if you want to execute at boot time ...try inittab file,
Example:
giis::boot:/usr/bin/giis -u > /dev/null
i added above line in my inittab file ..
so everytime linux boots a command called giis will run and it's outputs are sent to /dev/null ...just trash the output.
Check out this init - Wikipedia, the free encyclopedia
or simply type man inittab .
All the best