Hi all,
I need to redirect stdout and stderr to a file in a ksh shell. That's not a problem. But I need also the correct exit code for the executed command. In the example below I redirect correctly the stdout & stderr to a file, but I have the exit code of tee command and not for the mv... (2 Replies)
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)
Hello Everyone!
I'm trying to combine output for standard output and for possible standard error to the log file. I was trying to use tee command, but it turned out if error occurred error output will be send to the screen only and will not be redirected with tee command to the log file.
Anyone... (11 Replies)
Friends
I have to redirect STDERR messages both to screen and also capture the same in a file.
2 > &1 | tee file works but it also displays the non error messages to file, while i only need error messages.
Can anyone help?? (10 Replies)
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this?
We have to start different components from a startup script.
each components are started as below in the background in a startprocess function
$nohup $file $args >>$logFile 2>&1 &
... (0 Replies)
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this?
We have to start different components from a startup script.
each components are started as below in the background in a startprocess function
$nohup $file $args >>$logFile 2>&1 &
... (1 Reply)
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)
Currently I am redirecting STDERR and STDOUT to a log file by doing the following
{
My KSH script contents
} 2>&1 | $DEBUGLOG
Problem is the STDERR & STDOUT do not have any date/time associated.
I want this to be something that i can embed into a script opposed to an argument I use... (4 Replies)
Dear all,
redirecting STDOUT & STDERR to file is quite simple, I'm currently using:
exec 1>>/tmp/tmp.log; exec 2>>/tmp/tmp.logBut during script execution I would like the output come back again to screen, how to do that?
Thanks
Lucas (4 Replies)
Dear all,
redirecting STDOUT & STDERR to file is quite simple, I'm currently using:
Code:
exec 1>>/tmp/tmp.log; exec 2>>/tmp/tmp.log
But during script execution I would like the output come back again to screen, how to do that?
Thanks
Luc
edit by bakunin: please use CODE-tags like the... (6 Replies)
Discussion started by: tmonk1
6 Replies
LEARN ABOUT XFREE86
ncalogd.conf
ncalogd.conf(4) File Formats ncalogd.conf(4)NAME
ncalogd.conf - NCA logging configuration file
SYNOPSIS
/etc/nca/ncalogd.conf
DESCRIPTION
The ncalogd.conf is used to configure Solaris Network Cache and Accelerator ("NCA") logging. The file contains two fields, key and value.
The status key is used to indicate if the user wants to have NCA logging turned on. If the value of status key is enabled, then NCA logging
will be turned on. If the value of the status key is disabled, then NCA logging will not be invoked. The default value is disabled.
The logd_path_name key specifies the absolute pathname of the log file. The log file must be a raw device without a filesystem or a file on
a local file system. The default value is /var/nca/log. logd_path_name can also contain a whitespace-delimited list of values for multiple
log files to a maximum of 16. If you specify multiple log files, you must enclose the list in quotation marks ("). With multiple files, NCA
logging moves to the next file on the list once the file size specified by logd_file_size has been reached. When the last file is full, NCA
logging rotates back to the first file in the list. A pointer to the current log file is stored in /var/nca/current.
The logd_file_size key specifies the value of the file size, in bytes, allowed for each log file specified in by the logd_path_name key.
The default value is 1000000 bytes.
In order to implement changes to the ncalogd.conf file, you will need to stop and start NCA logging or reboot.
NCA stores logs in a binary format. Use the ncab2clf(1) utility to convert the log from a binary format to the Common Log File format.
EXAMPLES
Example 1: A Sample ncalogd.conf File
The following is a sample ncalogd.conf file that specifies three log files:
#
# NCA Log Daemon Configuration File
#
status=enabled
logd_path_name="/var/nca/log1 /var/nca/log2 /var/nca/log3"
logd_file_size=1000000
Note that there is no NCA logging daemon. Logging is performed as one of the functions of the NCA software.
FILES
/etc/nca/ncalogd.conf Lists configuration parameters for NCAlogging.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWncar |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO nca(1), ncab2clf(1), ncakmod(1), dd(1M), door_create(3DOOR), nca.if(4), ncakmod.conf(4), attributes(5)
System Administration Guide: IP Services
SunOS 5.10 22 Jan 2002 ncalogd.conf(4)