Sponsored Content
Top Forums Shell Programming and Scripting Question about error reporting Post 39594 by oombera on Monday 25th of August 2003 09:30:25 AM
Old 08-25-2003
The problem with the find command is that it returns an error code of 0 if the search was successful ... and the search is successful whether or not the file is found.

What about, before you need the file, using something like:

if [ -e your_file ]; then
...
fi
 

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
REMQUO(3)						     Linux Programmer's Manual							 REMQUO(3)

NAME
remquo, remquof, remquol - remainder and part of quotient SYNOPSIS
#include <math.h> double remquo(double x, double y, int *quo); float remquof(float x, float y, int *quo); long double remquol(long double x, long double y, int *quo); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): remquo(), remquof(), remquol(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L; or cc -std=c99 DESCRIPTION
These functions compute the remainder and part of the quotient upon division of x by y. A few bits of the quotient are stored via the quo pointer. The remainder is returned as the function result. The value of the remainder is the same as that computed by the remainder(3) function. The value stored via the quo pointer has the sign of x / y and agrees with the quotient in at least the low order 3 bits. For example, remquo(29.0, 3.0) returns -1.0 and might store 2. Note that the actual quotient might not fit in an integer. RETURN VALUE
On success, these functions return the same value as the analogous functions described in remainder(3). If x or y is a NaN, a NaN is returned. If x is an infinity, and y is not a NaN, a domain error occurs, and a NaN is returned. If y is zero, and x is not a NaN, a domain error occurs, and a NaN is returned. ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions. The following errors can occur: Domain error: x is an infinity or y is 0, and the other argument is not a NaN An invalid floating-point exception (FE_INVALID) is raised. These functions do not set errno. VERSIONS
These functions first appeared in glibc in version 2.1. CONFORMING TO
C99, POSIX.1-2001. SEE ALSO
fmod(3), logb(3), remainder(3) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2010-09-20 REMQUO(3)
All times are GMT -4. The time now is 11:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy