Sponsored Content
Top Forums UNIX for Advanced & Expert Users sending syslog output to stderr or stdout Post 87496 by dmirza on Monday 24th of October 2005 05:53:56 PM
Old 10-24-2005
sending syslog output to stderr or stdout

Is there a way to send the syslog output for a given facility to stderr or stdout?

I do not want to use the "tail" command to achieve this, I would like it to go directly to stderr.

Thanks in advance
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Redirect stdout and stderr

How can I redirect and append stdout and stderr to a file when using cron? Here is my crontab file: */5 * * * * /dir/php /dir/process_fns.php >>& /dir/dump.txt Cron gives me an 'unexpected character found in line' when trying to add my crontab file. Regards, Zach Curtis POPULUS (8 Replies)
Discussion started by: zcurtis
8 Replies

2. Shell Programming and Scripting

STDOUT and STDERR going to a system log

We are running HP UNIX 11.0, and a patch applied 6 months ago. Ever since the patch, any scripts that run as script_name 1>&2 will write all the output to our /etc/cmcluster/package_name/package_cntl.log which is owned by root (the permission of the log file is -rwxr----- root sys) Does... (1 Reply)
Discussion started by: longyie904
1 Replies

3. Shell Programming and Scripting

precedence of stderr and stdout

#!/usr/bin/perl open(STDOUT, ">>$Textfile") open(STDERR, ">>$Textfile") print "program running\n"; $final = join("+", $initial,$final) #5 close (STDOUT); close (STDERR);Hi all, above is my perl code. Notice i have captured the stdout and stderr to the same textfile. my code is expected to... (1 Reply)
Discussion started by: new2ss
1 Replies

4. Shell Programming and Scripting

redirecting STDOUT & STDERR

In bash, I need to send the STDOUT and STDERR from a command to one file, and then just STDERR to another file. Doing one or the other using redirects is easy, but trying to do both at once is a bit tricky. Anyone have any ideas? (9 Replies)
Discussion started by: jshinaman
9 Replies

5. Shell Programming and Scripting

getting stderr & stdout output lively modified

This is about getting all output to stderr and stdout localized. Nothing to do with redirecting output to a file (there already are some interesting threads about that issue on this forum). What I intend to do is capturing all lines of text sent to the screen, compare them with an array of... (2 Replies)
Discussion started by: teo ramirez
2 Replies

6. Shell Programming and Scripting

How to use tee with stdout and stderr?

I have been doing this: make xyz &> xyz.log &; tail -f xyz.log The problem with this is that you never can ge sure when "make xyz" is done. How can I pipe both stderr and stdout into tee so both stderr and stdout are copied both to the display and to the log file? Thanks, Siegfried (3 Replies)
Discussion started by: siegfried
3 Replies

7. Shell Programming and Scripting

sending stdout and stderr to a file

working on a c sell script I think I understand the concept of it, which is: filename >> file.txt (to appaend) or filename | tee -a file.txt (to append) The problem is that my shell script is used with several parameters, and these commands don't seem to work with just filename. They... (2 Replies)
Discussion started by: mistermojo
2 Replies

8. Shell Programming and Scripting

Preserve output order when redirecting stdout and stderr

Hi, I already searched through the forum and tried to find a answer for my problem but I didn't found a full working solution, thats way I start this new thread and hope, some can help out. I wonder that I'm not able to find a working solution for the following scenario: Working in bash I... (8 Replies)
Discussion started by: Boemm
8 Replies

9. Shell Programming and Scripting

stderr/stdout

Can somebody explain to me why the diff output is not going to stderr? Yet when I issue a diff from the command line the return code is -ne 1. I am guessing diff always writes to stdout??? Is there away I can force the difff to write to stderr USING THE CURRENT template. If possible, I... (5 Replies)
Discussion started by: BeefStu
5 Replies

10. Shell Programming and Scripting

stdout, stderr redirection

Hi all, can someone help me with the next redirection? i want to redirect the stdout+stderr of a command to the same file (this i can do by prog &> file) but in addition i want to redirect only the stderr to a different file. how can i do this please? (in BASH) thanks. (4 Replies)
Discussion started by: eee
4 Replies
lamssi(7)							 LAM SSI OVERVIEW							 lamssi(7)

NAME
lamssi - introduction to LAM System Services Interface (SSI) DESCRIPTION
The SSI in LAM/MPI is used to select one (or more) system services interfaces at run-time. OVERVIEW
LAM SSI instances are uniquely described in terms of "kinds" (also referred to as "types") and "modules". The "kind" refers to which set of system services the SSI instance will apply to. For example, LAM currently has several kinds: "boot", "coll", "cr" and "rpi". The "module" refers to a specific SSI instance of a given kind. Each kind has o boot modules are used to start the LAM run-time environment (i.e., they provide the back-end functionality to lamboot(1)). boot modules are discussed further in the lamssi_boot(7) man page. coll modules provide back-end algorithms and functionality for the MPI collective communications. coll modules are described in lamssi_coll(7). cr modules provide checkpoint/restart functionality for MPI jobs. See lamssi_cr(7) for details. rpi modules provide back-end functionality for MPI point-to-point communications. rpi modules are detailed in lamssi_rpi(7). VERBOSE OPERATION
The user can force SSI modules to be verbose by setting the LAM_SSI_ssi_verbose environment variable before invoking mpirun, or by using the -ssi command line switch to mpirun. For example: mpirun -ssi ssi_verbose 1 C foo Tell the SSI modules to be verbose, and default to sending their output to stderr. The ssi_verbose kind is a "pseudo-kind" in that it is used to pass parameters to the main SSI meta-glue itself -- not to any particular kind. It can take many different parameters to format where and how the verbose output will be sent (note that at least one parameter must be specified, even if it is an invalid parameter). Any combination of the following parameters may follow the ssi_verbose kind (separated by commas): syslog Send the verbose output to the syslog. syslogpri:<priority> Set the syslog output priority to <priority>. Using this paramter implies the syslog parameter. The default priority is info (LOG_INFO). Valid <priority> values are: notice (LOG_NOTICE), info, and debug (LOG_DEBUG). syslogid:<id> Use the ID <id> for the syslog prefix. stdout Send the verbose output to stdout. stderr Send the verbose output to stderr. file[:<filename>] Send the verbose output to a file in the LAM per-user, per-node meta information directory (usually located in /tmp). If <filename> is specified, send the output to the file named lam-<filename>. If <filename> is not specified, send the output to the file named lam- ssi.txt. fileappend Append to the file when sending the verbose output (create the file if it does not exist). If this parameter is not given, if the file already exists, it will be overwritten. Using this parameter implies the file parameter. level:vlevel Indicate the specific verbosity level to be used. Although the specific meaning of the verbosity level is left up to individual SSI modules, generally negative numbers mean no verbose messages, 0 means a minimal set of messages, and positive numbers mean more mes- sages (the greater the positive number, the more output messages will be generated). If left unspecified any any other ssi_verbose parameters are specified, the default level of 0 is used. If multiple parameters are passed in ssi_verbose, the output will be directed as implied by all the parameters. If no valid parameters are passed (e.g., a single invalid parameter is passed), then output will be directed to stderr by default. Also note that as with all SSI parameters, all of these values may be passed by setting the environment variable LAM_SSI_ssi_verbose before invoking mpirun. However, parameters passed through "-ssi ssi_verbose" will take precedence over environment variables. EXAMPLES
mpirun -ssi ssi_verbose 1 C foo Since no valid parameters were passed, the verbose output will be sent to stderr. mpirun -ssi ssi_verbose file:output.txt,syslogpri:notice C foo Send the verbose output to both the file lam-output.txt in the LAM user meta directory as well as to the syslog with a priority of LOG_NOTICE. SEE ALSO
lamssi_boot(7), lamssi_coll(7), lamssi_cr(7), lamssi_rpi(7), mpirun(1), lamboot(1), recon(1), lamwipe(1), LAM User's Guide LAM 7.1.4 July, 2007 lamssi(7)
All times are GMT -4. The time now is 07:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy