energiya
April 24th, 2007, 07:02 PM
Does anyone know a way to put together a script or gcc program to:
1) run some commands (save some status) .....not a problem
2) switch from init 4 to init 3 .....not a problem
3) run some commands (save some status) .....problem
4) run a script (the hibernate script) .....problem
A standard script running in a terminal window will execute steps 1 and 2 and then die (quite normal). The thing is I never programmed for linux (only for windows in linux). Could someone help me running step 2 and the next one work?
1) run some commands (save some status) .....not a problem
2) switch from init 4 to init 3 .....not a problem
3) run some commands (save some status) .....problem
4) run a script (the hibernate script) .....problem
A standard script running in a terminal window will execute steps 1 and 2 and then die (quite normal). The thing is I never programmed for linux (only for windows in linux). Could someone help me running step 2 and the next one work?