how to add a script, that execute at start time

Answers were Sorted based on User's Feedback



how to add a script, that execute at start time..

Answer / venugopal adep

We can add the script in rc scripts to start the script at
the time boot or stop the scripts at the time of
shutdown/reboot.
RC scripts are located in /etc/rcX.d/ where X is the run-
level.
If the RC scripts start with 'S' (start script) or 'K'
(kill/stop script)

Is This Answer Correct ?    3 Yes 0 No

how to add a script, that execute at start time..

Answer / solaris

add the script in .profile file

Is This Answer Correct ?    5 Yes 4 No

how to add a script, that execute at start time..

Answer / amit

If u saw the boot process first it execute /etc/inittab just
go to end of that file and make and entry.Make one script in
/usr drive and make it exectueable

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Solaris Commands Interview Questions

how to search hide files

14 Answers   TCS,


Is it possible to edit the corntab using vi

2 Answers  


hi frnds I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied. what is the reason and how to chnage the root passwd in the zone. can u please explain the query.

2 Answers   TCS,


How to configure the network card

2 Answers  


How ill you remove the subdisk and plexus

4 Answers  






how do u configure the disk

5 Answers  


How to enable and disable the dtlogin

1 Answers  


Explain /etc/system file

1 Answers  


If you have got a LUN, How to configure it, how to allocate LUN in linux/ solaris. What are the steps ?

2 Answers   Wipro,


How to stop the VCS

2 Answers  


What is environmental? How to add environmental variables in run level 3 & how to edit?

1 Answers   Wipro,


how to find out the how many disks attached in the server?

13 Answers   Accel, HP,


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)