05-14-2009
Command 'rm -f -r "0yfOYy-0008Nq-2j-32233-K"' failed with return code 1 and error mes
I would like to know what means this error and how to fix it
Command 'rm -f -r "0yfOYy-0008Nq-2j-32233-K"'
failed with return code 1 and error message
Thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I wrote a ksh program which run scripts from remote server.
To check the status code I wrote the following function:
check_remote_status()
{
status_code=`tail -1 $installLog`
if ] ; then
echo $errMsg | tee -a $installLog
exit 1
else
echo $validMsg >> $installLog
fi... (9 Replies)
Discussion started by: nir_s
9 Replies
2. UNIX for Dummies Questions & Answers
Hi,
While I am using "|" to join multiple commands, I am not getting the return code when there is error in one of the commnads.
Eg:
b=`find /path/a*.out | xargs basename`
if ; then
echo "Error"
fi
if there is error while finding the file or getting the basename, the $? is... (6 Replies)
Discussion started by: new_learner
6 Replies
3. Shell Programming and Scripting
The return code is "0" though the command fails. How to get a return code of "1" for this command when it fails or modify the command to get the right return code?
On HP UNIX
#-------- SCRIPT ----
#!/bin/ksh
find /opt/oracle/oroem/product/10.2.0.4/rdbms/audit/ \( -name "*.aud" \) -mtime +1... (3 Replies)
Discussion started by: pbekal
3 Replies
4. AIX
While trying to upgrade ssh from v4.7 to v5.0 on AIX 5.3 TL9, I end up with the following error.
Has anyone come across this?
Note: openssl has been upgraded to 0.9.8.840 before this upgrade
Bala (0 Replies)
Discussion started by: balaji_prk
0 Replies
5. Solaris
We have a number of system running the same patch level, OS version and sshd version. The systems also have the same sshd config and syslog.conf entries , however one of the systems keeps logging the following message everytime someone logs in:
Nov 16 09:36:02 server389 sshd: Failed none for... (3 Replies)
Discussion started by: Mr_Webster
3 Replies
6. Red Hat
Hi There,
I have been googling for this error and try solution provided but still not avail to resolve Kickstart Issue.
Any expert have encounter this problem? Thanks.
Regards,
Regmaster (4 Replies)
Discussion started by: regmaster
4 Replies
7. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
8. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
9. Solaris
Hi Guys,
From past some days, I am getting an error in /var/adm/messages which is as shown below.
XXXXX02:/# cat /var/adm/messages |tail
Sep 16 15:28:14 XXXX02 EV_AGENT: Agent Main --Estream construct failed. Err: EMULSocket::recv()
Sep 16 15:31:49 XXXX02 EV_AGENT: Agent main --... (2 Replies)
Discussion started by: vivek.goel.piet
2 Replies
10. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
LEARN ABOUT LINUX
erl_error
erl_error(3erl) C Library Functions erl_error(3erl)
NAME
erl_error - Error Print Routines
DESCRIPTION
This module contains some error printing routines taken from Advanced Programming in the UNIX Environment by W. Richard Stevens.
These functions are all called in the same manner as printf() , i.e. with a string containing format specifiers followed by a list of cor-
responding arguments. All output from these functions is to stderr .
EXPORTS
void erl_err_msg(FormatStr, ... )
Types const char *FormatStr;
The message provided by the caller is printed. This function is simply a wrapper for fprintf() .
void erl_err_quit(FormatStr, ... )
Types const char *FormatStr;
Use this function when a fatal error has occurred that is not due to a system call. The message provided by the caller is printed
and the process terminates with an exit value of 1. The function does not return.
void erl_err_ret(FormatStr, ... )
Types const char *FormatStr;
Use this function after a failed system call. The message provided by the caller is printed followed by a string describing the rea-
son for failure.
void erl_err_sys(FormatStr, ... )
Types const char *FormatStr;
Use this function after a failed system call. The message provided by the caller is printed followed by a string describing the rea-
son for failure, and the process terminates with an exit value of 1. The function does not return.
ERROR REPORTING
Most functions in erl_interface report failures to the caller by returning some otherwise meaningless value (typically NULL or a negative
number). As this only tells you that things did not go well, you will have to examine the error code in erl_errno if you want to find out
more about the failure.
EXPORTS
volatile int erl_errno
erl_errno is initially (at program startup) zero and is then set by many erl_interface functions on failure to a non-zero error code
to indicate what kind of error it encountered. A successful function call might change erl_errno (by calling some other function
that fails), but no function will ever set it to zero. This means that you cannot use erl_errno to see if a function call failed.
Instead, each function reports failure in its own way (usually by returning a negative number or NULL ), in which case you can exam-
ine erl_errno for details.
erl_errno uses the error codes defined in your system's <errno.h> .
Note:
Actually, erl_errno is a "modifiable lvalue" (just like ISO C defines errno to be) rather than a variable. This means it might be imple-
mented as a macro (expanding to, e.g., *_erl_errno() ). For reasons of thread- (or task-)safety, this is exactly what we do on most plat-
forms.
Ericsson AB erl_interface 3.7.3 erl_error(3erl)