07-18-2012
This User Gave Thanks to DukeNuke2 For This Post:
10 More Discussions You Might Find Interesting
1. Linux
Hi all,
i have a script in /etc/init.d directory.
-rwxr-xr-x 1 root root 26 Mar 28 16:00 myscript
I need it to run when my linux reboots/startup. However is it not being executed. Do i need to put in in the rc.local directory? (1 Reply)
Discussion started by: new2ss
1 Replies
2. AIX
I am using AIX 5.3 in P6 machine.
I have a script "test.sh", when i run it manually it runs properly.
I want to run the script automatically when system starts.
I kept the script in /etc/rc.d/init.d and also in /etc/rc.d/rc2.d but it is not working.
Do i have to write it in inittab instead of... (1 Reply)
Discussion started by: pchangba1
1 Replies
3. Shell Programming and Scripting
Hi guys ,
I Need to run a specific command (pinging a particular machine).
Which need to run every time i reboot the server till the time it shut down.
What is the preferred way of doing this.
Will it impact my system performance.
My Operating system is as below.
# lsb_release -a... (3 Replies)
Discussion started by: pinga123
3 Replies
4. UNIX for Dummies Questions & Answers
hi,
i am using rhel 5, and i wanna run a script as soon as the operating system open. How can i do this ? ( i was reading rc.d files but i could not understand exactly what are the run levels and where should i put the my shell script.
my script will be :
#!/bin/ksh
iptables -I INPUT... (1 Reply)
Discussion started by: futi
1 Replies
5. UNIX for Dummies Questions & Answers
Hi guys I want to start a service and a script SiteMonitor.sh at startup.
To start with i have modified /etc/rc.local file.
Here is the content of my /etc/rc.local file.
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own... (3 Replies)
Discussion started by: pinga123
3 Replies
6. SuSE
Hi
I have a script myscript.sh that needs to be run whenever the server boots. The script is actually logging Syslog-ng messages to sql server. I need to lauch it at startup
I have copied the script in etc/init.d
i have also added the link
ln -s /etc/init.d/syslog-ng-mssql-pipe.sh... (5 Replies)
Discussion started by: SystemEng
5 Replies
7. AIX
Run script with different user at the startup ..
I have created this user appuser
And I have a script should to be up thru the startup by this user appuser
I have defined the path of the script /user/appstart.sh in /etc/rc
But at the startup starting will be by root , I’d like to keep... (6 Replies)
Discussion started by: Mr.AIX
6 Replies
8. Shell Programming and Scripting
Hello All,
Here I am trying to find all the directories whose name starts with EFS or HOTFIX like in below example and below is my code but I don’t know why this is not working correctly.
drwxr-xr-x 3 qabuild denccefs 4096 Sep 23 21:36 EFS110929A_SOURCE/
-rwxrwxr-x 1 qabuild... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
9. UNIX for Dummies Questions & Answers
I have tcsh scripts on path
/home/chrisd/tatsh/trunk/hstmy/bin/tcsh/
I want to run the script from within another script.
Suppose I go to directory
/home/chrisd/tatsh/trunk/hsdata/n02/terr0.25/darwin
and want to run checksrdist.tcsh
So I do
cd ... (1 Reply)
Discussion started by: kristinu
1 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data: It's a shell script using a looping logic, trap, tput, if, while. Most of the scripts in this book aren't written... (2 Replies)
Discussion started by: ckleinholz
2 Replies
LEARN ABOUT OPENDARWIN
consolemessage
ConsoleMessage(8) BSD System Manager's Manual ConsoleMessage(8)
NAME
ConsoleMessage -- Send a message to SystemStarter
SYNOPSIS
ConsoleMessage [-v] message
ConsoleMessage [-v] -S
ConsoleMessage [-v] -F
ConsoleMessage [-v] -s service
ConsoleMessage [-v] -f service
ConsoleMessage [-v] -q setting
ConsoleMessage [-v] -b path
ConsoleMessage [-v] -u
DESCRIPTION
The ConsoleMessage utility may be used by startup item scripts to send messages to SystemStarter (see SystemStarter(8)).
The default behavior is to send the specified message to SystemStarter to be displayed on the console. SystemStarter will attempt to local-
ize the string using the current startup item's localization dictionaries.
ConsoleMessage may also be used to give feedback to SystemStarter indicating which services provided by the startup item have succeeded or
failed.
OPTIONS
-v verbose mode (prints errors to stdout)
-S mark all services provided by this item as successful
-F mark all services provided by this item as failed
-s mark the service as successful
-f mark the service as failed
-q query SystemStarter for the value of the configuration variable setting (result will be printed to stdout).
-b Tell SystemStarter to load the display bundle at the specified path
-u Tell SystemStarter to unload the current display bundle
NOTES
When a service name is not specified, ConsoleMessage assumes its parent process identification (see getppid(2)) is that of a startup item
script, and uses that token to find the correct list of services provided by the current item. If the process calling ConsoleMessage is not a
startup item script, it is necessary to explicitly provide service names.
SEE ALSO
SystemStarter(8)
http://www.opensource.apple.com/projects/documentation/howto/html/SystemStarter_HOWTO.html
HISTORY
The ConsoleMessage utility appeared in Darwin 6.0
Darwin April 12, 2002 Darwin