Sponsored Content
Top Forums Shell Programming and Scripting Question about error reporting Post 39585 by krishnamarajuc on Monday 25th of August 2003 03:09:55 AM
Old 08-25-2003
append "&2 >/usr/error.log" at the end of the command, to log all the error messages to a file(/usr/error.log) and at the end of the execution use "cat /usr/error.log" to display only the system generated errors.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reporting

I have to do a lot of reporting for the company that I work for and was wondering if anyone had suggestions for a way to create professional looking reports. I currently use Filepro so much that I rarely see the shell. Any help is appreciated. (3 Replies)
Discussion started by: Mike11
3 Replies

2. UNIX for Dummies Questions & Answers

Progress reporting

Hi everyone, I'm completely new to the board and to UNIX and I have the following question regarding a script I am building. I am trying to copy an entire directory into a new directory and I was wondering if there is any way of printing on screen a progress report, for example a percentage. It... (9 Replies)
Discussion started by: Ypnos
9 Replies

3. Shell Programming and Scripting

Reporting SU and Failedlogins

Hi:- I am working on an audit report that produces a monthly summary of account activity on a particular AIX host. I am struggling with su activity and failed logins as these tend to come back with more then a month's data. Is there a easy way that these files can be rotated/cleaned out on a... (1 Reply)
Discussion started by: janet
1 Replies

4. UNIX for Advanced & Expert Users

reporting NS-12564 error as ORA-12564

Hi My client connection to RAC Oracle Release 10.2.0.4.0 database suddenly stopped working. ACPT_1 - works but not with OEM. ACPT_2 - does not work at all. Getting error ORA-12564: TNS:connection refused Any ideas very much appreciated Thanks ACPT_1 = (DESCRIPTION = ... (4 Replies)
Discussion started by: zam
4 Replies

5. Solaris

sar command not reporting

I am running Solaris 10 in a sparc environment. I have the sys crontab setup to use sar to gather data and report it. My sys crontab entry looks like this: 0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1 20,40 8-17 * * 1-5 /usr/lib/sa/sa1 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e... (2 Replies)
Discussion started by: RobSand
2 Replies

6. UNIX for Dummies Questions & Answers

Error reporting script

I am very new to unix/linux and am unsure how to do the following tasks within my script 1) append a log file and add a timestamped echo "Error occured" to it, if posibble to print it to file and on screen at the same time would be even better. 2) As my main script will be calling on a couple... (1 Reply)
Discussion started by: shamwick
1 Replies

7. SCO

du and dfspace reporting

Hi, I am using SCO UNIX version 6.0.0 release 5. I am using du and df space to see the used space in the / partition. I am using du -k option to get count in 1024 k so that it directly makes kb. In dfspace I subtracted the used mb from total size mb which should be the used space and then... (40 Replies)
Discussion started by: dextergenious
40 Replies

8. AIX

How to disable an error reporting ???

Hi A few days ago I attached an usb external disk to a server running AIX, then I removed it without typing any commands. Now, the server can't find the usb device and it keeps reporting the errors every 3 hours, like this 55479D40 0112080017 T H usbms0 ADDITIONAL INFORMATION... (2 Replies)
Discussion started by: bobochacha29
2 Replies
defragcron(8)						      System Manager's Manual						     defragcron(8)

NAME
defragcron - Schedules AdvFS file domains for defragmenting SYNOPSIS
/usr/sbin/defragcron [-p] [-q] [-t nnn] [-b hh:mm] [-a hh:mm] [-l pathname] [domain...] /usr/sbin/defragcron [-p] [-q] [-t nnn] [-T mm] [-l pathname] [domain...] OPTIONS
Specifies that the domains are to be defragmented in parallel. If not specified, the default is to serially defragment the domains. Sup- press informational messages. If not specified, the default is to produce informational messages. Specifies the aggregate I/O performance threshold, the point at which the domain should be defragmented. A number from 1-100. If not specified, the default is to always defrag- ment the domain. The performance threshold is based on the value returned by the defragment -nv command. If this value is lower than or equal to the value specified here, the domain is defragmented. If specified, the utility will not run before this time and will return an error if the time is not yet reached. Specify time values using the 24-hour clock. If not specified, the default time is 01:00. If specified, the utility will not run after this time, and will return an error if the time has been passed. Specify time values using the 24-hour clock. If not specified, the default time is 05:00. Specifies an exact time interval, in minutes, for the defragment utility to run. If not specified, there is no default. If you use this option, its action overrides the before and after time checking of the -a and -b options. Specify the -l option to direct messages to log files in the specified directory. One log file is generated for nonspecific messages and separate log files are generated for each domain that is defragmented. If the option is not specified, the default action is to not produce log files for the messages (which then are directed to the standard output device). If the option is specified, you also must specify a pathname for the directory into which the log files are to be written. The default directory, as specified in the root crontab entry, is /usr/var/defragcron/. The names of the log files have the following format: domain1.log, domain2.log, ..., and so on, one file for each active domain, plus a file, defragcron.log for the nonspecific messages. If you have named a domain defragcron, messages for that domain are writ- ten to the nonspecific messages in the defragcron.log file. OPERANDS
Specifies one or more AdvFS file domains. If no domains are specified, the default action is for the utility to defragment all active AdvFS file domains. DESCRIPTION
The defragcron utility runs the defragment utility to a schedule that you specify on all active AdvFS file domains or on the active domains you specify. The typical use of this utility is to run it as a command in the cron daemon. See cron(8). Unless the domain is listed in the comand line, the utility does not attempt to defragment inactive file domains (those which have no mounted filesets). It can try to defragment file domains that have some mounted and some unmounted filesets. In this case, the utility fails. RESTRICTIONS
You must have root user privileges to run this utility. All restrictions for the defragment utility are in effect for the defragcron utility. EXIT STATUS
The utility returns a 0 (zero) on success. Otherwise, it returns a 1 and an error diagnostic. EXAMPLES
The following example defragments all active domains that have an aggregate I/O performance threshold less than or equal to 60 for an interval of 240 minutes: # /usr/sbin/defragcon -q -t 60 -T 240 FILES
The command's path. The path of the defragment utility. SEE ALSO
Commands: crontab(1), cron(8), defragment(8) defragcron(8)
All times are GMT -4. The time now is 03:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy