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

I have only one plex and one subdisk and one volume , then plex is failed how can we recolect it?

4 Answers   IBM,


1)How to identify VXVM version? 2)What the path of scconf in cluster?

5 Answers   IBM,


How to boot the solaris system in 64 0r 32 bit kernel

3 Answers  


Explain RAID0, RAID1, RAID3,

1 Answers  


How to configure the network card

2 Answers  






What is a heart-beat?

2 Answers  


What is the physical device to check the 2 nodes connect in cluster

1 Answers  


can you explain about the vxencap command in veritas volume manager?

3 Answers   VeriSign, Wipro,


what is the difference between /var/adm/ and /var/sadm directory contains in solaris?

1 Answers   TCS,


how many default groups are there in solaris10?what are they?

5 Answers   HP, Patni,


How can youy check the disk status in , is it locally connected or remotely connected?

4 Answers   Thomson Reuters,


If you have multiple ethernet interfaces, how do you keep it from routing between them?

3 Answers  


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)