need help


 
Thread Tools Search this Thread
Operating Systems Solaris need help
# 1  
Old 02-27-2004
need help

hi,
i have few questions......regarding SUN
1) if i want to execute some command when the system is booting which file can i use other than /etc/inittab


2)i have created a new user into the system.when loggedin with
that user i'm not able to use ............dfspace command...pls help


thx
girish
# 2  
Old 02-27-2004
..........

1;
you have to use a rc script located in /etc/rc<runlevel>.d/S#scriptname
2;
look at the permissions of dfspace...

i haven't found an dfspace on my sun, i use df instead...

greetings Preßy
# 3  
Old 02-27-2004
to clearify solaris does not have a /etc/rc.d/blah.

it has run levels. if you want to start a service or have commands run at start up you can do it 1 of 2 ways.

1) put it in /etc/rc3.d and name your script S<number><name of script>

the S means START and the scripts will start from the lowest number in that dir to the highest.

you might also see some scripts have start w/ a K those mean KILL those are usually ment to shutdown a process when you order the os to reboot, or you change to a lower init level.

2) you can put it in /etc/inittab but personaly i try to stay away from useing that file if i dont have to.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question