Suggestions on input

Hi,

I have written a script which calls a process which ends up in a reboot of the system. At the end of the reboot it prompts for login & i need to provide the login details. am not able to figure out hw to do this.

Doubt: will echoing login details after calling the process work?
for ex:

main_script
{

./process1 (this ends up in a reboot & aska for login details)
#i need to give the login details here ( i mean i need to automate entering the login details

}

At the time the system reboots, no old process will be running any longer. You need to somehow hook into the startup scripts and tell them where to resume. Depending on what system this is, look for how to customize different runlevels. (Debian doesn't use runlevels much; they exist but I don't think a lot of admins are even aware that they exist.)