Show ksh script started on boot


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Show ksh script started on boot
# 1  
Old 11-06-2013
Show ksh script started on boot

Hi,
i need to know, which ksh script are executed on boot (Sun and aix OS).
Where can i find it ?
# 2  
Old 11-06-2013
/etc/inittab, /etc/rc.d, and google
# 3  
Old 11-06-2013
And will depend on OS version...
# 4  
Old 11-06-2013
Quote:
Originally Posted by vbe
And will depend on OS version...
i need to know these information on SUN 5.10 and AIX 1 6

---------- Post updated at 12:29 PM ---------- Previous update was at 12:27 PM ----------

Quote:
Originally Posted by blackrageous
/etc/inittab, /etc/rc.d, and google
for AIX ok (/etc/rc.d)

for SUN, in /etc/inittab i don't find the scripts attended
# 5  
Old 11-06-2013
Because it was obsoleted in Solaris10... Now you use services...Look at the content of /etc/inittab
Though to be able to run old things the rc stuff is still there and could be used
Code:
nm1:/etc $ who -r
   .       run-level 3  Jun 27 08:30     3      0  S
nm1:/etc $ cd rc3.d
nm1:/etc/rc3.d $ ll
total 54
drwxr-xr-x   2 root     sys            8 Jun 26 15:55 .
drwxr-xr-x  78 root     sys          241 Nov  6 13:20 ..
-rw-r--r--   1 root     sys         1285 Jan 22  2005 README
-rwxr--r--   6 root     sys          474 Jan 22  2005 S16boot.server
-rwxr--r--   7 root     sys         2452 Apr  4  2012 S50apache
-rwxr--r--   6 root     sys         5840 Jun 19  2006 S52imq
-rwxr--r--   5 root     sys          824 Mar 26  2004 S84appserv
-rwxr--r--   7 root     sys         2452 Apr  4  2012 _S50apache
nm1:/etc/rc3.d $

# 6  
Old 11-06-2013
Solaris-10:
see the files in /var/svc/log/
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Inotifywait restart script prevents reboot when started

Hi, maybe someone could help me optimizing this little script. It works so far, but when running, reboot does not work. If kill inotifywait reboot from shell works. I think some optimization is required here. This script starts at the end of the boot process, from an external device and... (3 Replies)
Discussion started by: lowmaster
3 Replies

2. Shell Programming and Scripting

Check whether shell script has started.

How can i ceck as shellscript, if a other shellscript has been started? The other script can bee started by a other user. The task will not run twice (5 Replies)
Discussion started by: Linuxmann
5 Replies

3. Solaris

Solaris 8, you boot the system but does not have anything on the screen (not started)

Greetings to all. I have two computers, Sun Blade 150. the first, had the Solaris 8 system, and that system needed to clone the "second" to start it with the same settings. Use a program to clone the drive, and then have cloned, had the error: Can't read disk label. Can't open disk... (4 Replies)
Discussion started by: feliz-58
4 Replies

4. Shell Programming and Scripting

Time elapsed since script started

Hi I want to know if there is anyway I can find out how long it has been since I started my script or total time it has been since my script is executing. Idea here is I want to check if my script is taking more than 30minutes to execute I want to kill that process. Thanks in advance. (1 Reply)
Discussion started by: dashing201
1 Replies

5. UNIX for Dummies Questions & Answers

How can I show my "current" directory as the KSH prompt?

Hi All, This is an embarrassingly simple question and couldn't think of "keywords" to search for the answer, but how do I change my UNIX/KSH prompt to show the machine name and my "current" but not "full" directory? For example: if the machine name is "machine" and I'm currently in... (4 Replies)
Discussion started by: chatguy
4 Replies

6. AIX

How to check a script was started using 'sudo' ?

How can I from within a script, find out if that script was started using 'sudo' and by a valid soduer ? (1 Reply)
Discussion started by: Browser_ice
1 Replies

7. Shell Programming and Scripting

Different time format in script, started in shell or in cron

I try to write a python script, which analyze user logon time with "who" command. When i start script in bash, i get this result: USER=mnadmin tty7 2009-04-18 11:37 (:0) But when i start script in cron, i get result like this: USER=mnadmin tty7 Apr 18 11:37 (:0) I see -... (2 Replies)
Discussion started by: jrush
2 Replies

8. Shell Programming and Scripting

need some help getting started on this script

Hi. I am just getting into scripting. I came into a situation where I need to go through several hundred files on a Linux system and find a couple specific bits of information from within each file. All the files have pretty much identical content except for a view data values on the same two lines... (4 Replies)
Discussion started by: Dave247
4 Replies

9. Shell Programming and Scripting

How to get rid of message when script kills process it started?

When I run the following script I get the following error message whcih I would like to suppress when the kill is issued: ./kill.sh: line 13: 31854 Killed nc -l -p 12345 Script: #!/bin/bash echo running nc in the background nc -l -p 12345 & PID=$! echo nc pid: $PID ... (1 Reply)
Discussion started by: cmarkle
1 Replies

10. Shell Programming and Scripting

import var and function from ksh script to another ksh script

Ih all, i have multiples ksh scripts for crontab's unix jobs they all have same variables declarations and some similar functions i would have a only single script file to declare my variables, like: var1= "aaa" var2= "bbb" var3= "ccc" ... function ab { ...} function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies
Login or Register to Ask a Question