Results 1 to 3 of 3
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...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-05-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 46
automatic executable batch file in linux
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
- 10-05-2007 #2
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
- 10-06-2007 #3
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 bestFirst they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org


Reply With Quote

