10 More Discussions You Might Find Interesting
1. Emergency UNIX and Linux Support
Hi all,
which file has the low priority while linux booting?. I just want to run a script in background with low priority while linux boots up.(I need to include that script to be called from that file) as am a newbie to linux. Any help is appreciated.
Thanks,
SMNK (2 Replies)
Discussion started by: SMNK
2 Replies
2. Red Hat
Hi All,
Is this correct on DNS searching?
(1st priority) /etc/hosts
(2nd p.) /etc/resolv.conf
Are there more things that I didn't know?
Thank you for any comments you may add. (5 Replies)
Discussion started by: itik
5 Replies
3. AIX
hi how to change the priority of a process for eg.if a,b,c these there process are running and if i have to give the b process as high priority and high severe level what should i do (3 Replies)
Discussion started by: senmak
3 Replies
4. Programming
hello everybody!
i would like to post a question. If i embed in my C code the command kill(9,pid) inside an if command. Is this command(kill) executed in any way. Both if the if is true and false. Does kill have greater priority than the if command.
thanx in advance! (5 Replies)
Discussion started by: nicos
5 Replies
5. UNIX for Advanced & Expert Users
Consider in a makefile i have the target defined as:
pgm: a.o b.o
cmd;
To build .o, 2 rules are defind
.pc.o:
cmds
.c.o:
cmds
My question is which rule will take priority for compiling a.o and b.o when the target pgm is built.
Despite the positoning of the 2 rules, .c.o... (1 Reply)
Discussion started by: quintet
1 Replies
6. UNIX for Advanced & Expert Users
Hi,
I want to increase IRQ4 priority to maximum in Fedora core 9 (kernel version 2.6.25.11-97).If anybody knows plz help me....
I will be very thankful ..
regards,
Raj (0 Replies)
Discussion started by: rajuprade
0 Replies
7. Shell Programming and Scripting
Hi,
I am a nw bie to Schell Scripting, i have a same king of requirement as posted above.
my input file is also a log file as below.....
28.05.2008 07:02:56,105 INFO Validation request recieved
28.05.2008 07:03:57,856 INFO 0:01:13.998 Response sent with: <?xml version="1.0"... (0 Replies)
Discussion started by: balaji_gopal
0 Replies
8. Solaris
Is it possible to change priority of stream process ?
Original source: stream ./javawebserver
Desired change is kind of: nice --10 of (stream ./javawebserver) (2 Replies)
Discussion started by: gogogo
2 Replies
9. UNIX for Advanced & Expert Users
Hi! Experts,
Is there anyway to incerase the priority of a process which is already started and running??.. I think nice can used for increase priority when we start the process..
But donno how to do when its already running..
Any help would be apreciated..
Jyoti (2 Replies)
Discussion started by: jyotipg
2 Replies
10. Programming
I have the following code in a file:
task ph_cause_sound()
{
char sys_call;
int ret_val;
sprintf (sys_call, "/usr/local/bin/test_sound ");
ret_val = system(sys_call);
}
test_sound is a script file that contains one line:
nice --20 /usr/local/bin/vmod4dSOUND
What is... (2 Replies)
Discussion started by: maddog0606
2 Replies
logger(1) User Commands logger(1)
NAME
logger - add entries to the system log
SYNOPSIS
logger [-i] [-f file] [-p priority] [-t tag] [message] ...
DESCRIPTION
The logger command provides a method for adding one-line entries to the system log file from the command line. One or more message argu-
ments can be given on the command line, in which case each is logged immediately. If this is unspecified, either the file indicated with -f
or the standard input is added to the log. Otherwise, a file can be specified, in which case each line in the file is logged. If neither
is specified, logger reads and logs messages on a line-by-line basis from the standard input.
OPTIONS
The following options are supported:
-ffile Uses the contents of file as the message to log.
-i Logs the process ID of the logger process with each line.
-ppriority Enters the message with the specified priority. The message priority can be specified numerically, or as a facility.level
pair. For example, `-p local3.info' assigns the message priority to the info level in the local3 facility. The default pri-
ority is user.notice.
-ttag Marks each line added to the log with the specified tag.
OPERANDS
The following operand is supported:
message One of the string arguments whose contents are concatenated together, in the order specified, separated by single space charac-
ters.
EXAMPLES
Example 1 Examples of the logger command
The following example:
example% logger System rebooted
logs the message `System rebooted' to the default priority level notice to be treated by syslogd as are other messages to the facility
user.
The next example:
example% logger -p local0.notice -t HOSTIDM -f /dev/idmc
reads from the file /dev/idmc and logs each line in that file as a message with the tag `HOSTIDM' at priority level notice to be treated by
syslogd as are other messages to the facility local0.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of logger: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
mailx(1), write(1), syslogd(1M), syslog(3C), attributes(5), environ(5), standards(5)
SunOS 5.11 1 Feb 1995 logger(1)