View Single Post
Old Jul 6th, 2005, 8:51 AM   #6
Moldz
Programmer
 
Moldz's Avatar
 
Join Date: Feb 2005
Posts: 54
Rep Power: 4 Moldz is on a distinguished road
Ok then, check out /etc/init.d, it is full of scripts that start programs on boot. They are somewhat simple bash scripts, I would make a copy of one of them and change what you need. Then use the program /sbin/chkconfig to setup the script to run on boot

The utmp file is in a binary format. You can find out the exact structure by checking out the man page, "man utmp".
Moldz is offline   Reply With Quote