Wednesday, September 10, 2008

autoexec.bat

sulekha

which file in ubuntu 8.04 does the same purpose as, autoexec.bat file in windows ?



iaculallad

Any script file (with executable attribute) could be equivalent to autoexec, and you have to place it in the init.d directory for it to execute after boot process.


amoej1

Actually within ubuntu you can use the file /etc/rc.local for this

Code:

edb@lapedb:/etc/init.d$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0

This gets called from /etc/init.d/rc.local

No comments:

Post a Comment