/var/cron/log Return Codes


 
Thread Tools Search this Thread
Operating Systems Solaris /var/cron/log Return Codes
# 1  
Old 06-04-2007
/var/cron/log Return Codes

I want to know if there is any documentation or any type of information that can give a list of all of the return codes that can be seen in the /var/cron/log. I have seen a couple in my log file. Example: rc=1 and rc=64.
# 2  
Old 06-04-2007
These are the standard Solaris error codes, not sure if cron has its own list like patchadd does...

Code:
/*
 * Error codes
 */

#define EPERM   1       /* Not super-user                       */
#define ENOENT  2       /* No such file or directory            */
#define ESRCH   3       /* No such process                      */
#define EINTR   4       /* interrupted system call              */
#define EIO     5       /* I/O error                            */
#define ENXIO   6       /* No such device or address            */
#define E2BIG   7       /* Arg list too long                    */
#define ENOEXEC 8       /* Exec format error                    */
#define EBADF   9       /* Bad file number                      */
#define ECHILD  10      /* No children                          */
#define EAGAIN  11      /* Resource temporarily unavailable     */
#define ENOMEM  12      /* Not enough core                      */
#define EACCES  13      /* Permission denied                    */
#define EFAULT  14      /* Bad address                          */
#define ENOTBLK 15      /* Block device required                */
#define EBUSY   16      /* Mount device busy                    */
#define EEXIST  17      /* File exists                          */
#define EXDEV   18      /* Cross-device link                    */
#define ENODEV  19      /* No such device                       */
#define ENOTDIR 20      /* Not a directory                      */
#define EISDIR  21      /* Is a directory                       */
#define EINVAL  22      /* Invalid argument                     */
#define ENFILE  23      /* File table overflow                  */
#define EMFILE  24      /* Too many open files                  */
#define ENOTTY  25      /* Inappropriate ioctl for device       */
#define ETXTBSY 26      /* Text file busy                       */
#define EFBIG   27      /* File too large                       */
#define ENOSPC  28      /* No space left on device              */
#define ESPIPE  29      /* Illegal seek                         */
#define EROFS   30      /* Read only file system                */
#define EMLINK  31      /* Too many links                       */
#define EPIPE   32      /* Broken pipe                          */
#define EDOM    33      /* Math arg out of domain of func       */
#define ERANGE  34      /* Math result not representable        */
#define ENOMSG  35      /* No message of desired type           */
#define EIDRM   36      /* Identifier removed                   */
#define ECHRNG  37      /* Channel number out of range          */
#define EL2NSYNC 38     /* Level 2 not synchronized             */
#define EL3HLT  39      /* Level 3 halted                       */
#define EL3RST  40      /* Level 3 reset                        */
#define ELNRNG  41      /* Link number out of range             */
#define EUNATCH 42      /* Protocol driver not attached         */
#define ENOCSI  43      /* No CSI structure available           */
#define EL2HLT  44      /* Level 2 halted                       */
#define EDEADLK 45      /* Deadlock condition.                  */
#define ENOLCK  46      /* No record locks available.           */
#define ECANCELED 47    /* Operation canceled                   */
#define ENOTSUP 48      /* Operation not supported              */

/* Filesystem Quotas */
#define EDQUOT  49      /* Disc quota exceeded                  */

/* Convergent Error Returns */
#define EBADE   50      /* invalid exchange                     */
#define EBADR   51      /* invalid request descriptor           */
#define EXFULL  52      /* exchange full                        */
#define ENOANO  53      /* no anode                             */
#define EBADRQC 54      /* invalid request code                 */
#define EBADSLT 55      /* invalid slot                         */
#define EDEADLOCK 56    /* file locking deadlock error          */

#define EBFONT  57      /* bad font file fmt                    */

/* Interprocess Robust Locks */
#define EOWNERDEAD      58      /* process died with the lock */
#define ENOTRECOVERABLE 59      /* lock is not recoverable */

/* stream problems */
#define ENOSTR  60      /* Device not a stream                  */
#define ENODATA 61      /* no data (for no delay io)            */
#define ETIME   62      /* timer expired                        */
#define ENOSR   63      /* out of streams resources             */

#define ENONET  64      /* Machine is not on the network        */
#define ENOPKG  65      /* Package not installed                */
#define EREMOTE 66      /* The object is remote                 */
#define ENOLINK 67      /* the link has been severed            */
#define EADV    68      /* advertise error                      */
#define ESRMNT  69      /* srmount error                        */

#define ECOMM   70      /* Communication error on send          */
#define EPROTO  71      /* Protocol error                       */

/* Interprocess Robust Locks */
#define ELOCKUNMAPPED   72      /* locked lock was unmapped */

#define ENOTACTIVE 73   /* Facility is not active               */
#define EMULTIHOP 74    /* multihop attempted                   */
#define EBADMSG 77      /* trying to read unreadable message    */
#define ENAMETOOLONG 78 /* path name is too long                */
#define EOVERFLOW 79    /* value too large to be stored in data type */
#define ENOTUNIQ 80     /* given log. name not unique           */
#define EBADFD  81      /* f.d. invalid for this operation      */
#define EREMCHG 82      /* Remote address changed               */

/* shared library problems */
#define ELIBACC 83      /* Can't access a needed shared lib.    */
#define ELIBBAD 84      /* Accessing a corrupted shared lib.    */
#define ELIBSCN 85      /* .lib section in a.out corrupted.     */
#define ELIBMAX 86      /* Attempting to link in too many libs. */
#define ELIBEXEC 87     /* Attempting to exec a shared library. */
#define EILSEQ  88      /* Illegal byte sequence.               */
#define ENOSYS  89      /* Unsupported file system operation    */
#define ELOOP   90      /* Symbolic link loop                   */
#define ERESTART 91     /* Restartable system call              */
#define ESTRPIPE 92     /* if pipe/FIFO, don't sleep in stream head */
#define ENOTEMPTY 93    /* directory not empty                  */
#define EUSERS  94      /* Too many users (for UFS)             */

/* BSD Networking Software */
        /* argument errors */
#define ENOTSOCK        95      /* Socket operation on non-socket */
#define EDESTADDRREQ    96      /* Destination address required */
#define EMSGSIZE        97      /* Message too long */
#define EPROTOTYPE      98      /* Protocol wrong type for socket */
#define ENOPROTOOPT     99      /* Protocol not available */
#define EPROTONOSUPPORT 120     /* Protocol not supported */
#define ESOCKTNOSUPPORT 121     /* Socket type not supported */
#define EOPNOTSUPP      122     /* Operation not supported on socket */
#define EPFNOSUPPORT    123     /* Protocol family not supported */
#define EAFNOSUPPORT    124     /* Address family not supported by */
                                /* protocol family */
#define EADDRINUSE      125     /* Address already in use */
#define EADDRNOTAVAIL   126     /* Can't assign requested address */
        /* operational errors */
#define ENETDOWN        127     /* Network is down */
#define ENETUNREACH     128     /* Network is unreachable */
#define ENETRESET       129     /* Network dropped connection because */
                                /* of reset */
#define ECONNABORTED    130     /* Software caused connection abort */
#define ECONNRESET      131     /* Connection reset by peer */
#define ENOBUFS         132     /* No buffer space available */
#define EISCONN         133     /* Socket is already connected */
#define ENOTCONN        134     /* Socket is not connected */
/* XENIX has 135 - 142 */
#define ESHUTDOWN       143     /* Can't send after socket shutdown */
#define ETOOMANYREFS    144     /* Too many references: can't splice */
#define ETIMEDOUT       145     /* Connection timed out */
#define ECONNREFUSED    146     /* Connection refused */
#define EHOSTDOWN       147     /* Host is down */
#define EHOSTUNREACH    148     /* No route to host */
#define EWOULDBLOCK     EAGAIN
#define EALREADY        149     /* operation already in progress */
#define EINPROGRESS     150     /* operation now in progress */

/* SUN Network File System */
#define ESTALE          151     /* Stale NFS file handle */


Last edited by Tornado; 06-04-2007 at 10:14 PM..
Tornado
# 3  
Old 06-04-2007
The exit code of a process is not the same as a error number found in errno.

Returns codes from programs are program specific and should be documented in the relevant manpage for that program. For example grep returns 0, 1 or 2.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Return Codes...

Not sure if this is of any use but...... I was messing around with getting return codes greater than 255 for special usage... Of course the code could be made simple but in this code the new stored return code is generated as exit is progressing... #!/bin/sh # Real and imaginary return... (9 Replies)
Discussion started by: wisecracker
9 Replies

2. UNIX and Linux Applications

Oracle return codes?

Having searched high and low through Oracles documentation, I came to think that they're very scripting-averse, as there's (apparently) no list of possible return/exit codes for their various command line utilities. Is anyone here in possession of such a list, or knows where to find one? It... (16 Replies)
Discussion started by: pludi
16 Replies

3. Shell Programming and Scripting

Different Return Codes

Hi, I wanted to know the significance of different return codes when we do echo $? I know when $? returns 0 the command has worked successfully. but what does $? = 1, 2, 3 etc. signify. Thanks in advance for the help !!! (3 Replies)
Discussion started by: aarti.popi
3 Replies

4. Shell Programming and Scripting

sftp return codes

sftp -v b $putlist $SFTP_ID@TARGET_SERVER How can I get a return code if fails to put the file? sftp -v b $getlist $SFTP_ID@TARGET_SERVER How can I get a return code if fails to put the file? (1 Reply)
Discussion started by: TimHortons
1 Replies

5. Shell Programming and Scripting

help with return codes

Hi In an unix script I am using an Perl one liner perl -i -ne '-----' If the perl one liner fails i am not able to catch the return code. It always give 0 as return code. Can you tell me how can i catch the return code perl -i -ne '---' RETCODE=$? echo $RETCODE Thanks and Regards Ammu (2 Replies)
Discussion started by: ammu
2 Replies

6. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

7. UNIX for Advanced & Expert Users

Return Codes

I have a simple script which renames a file.How do i capture the return code of the script if the script fails (3 Replies)
Discussion started by: kris01752
3 Replies

8. Red Hat

LAuS error messages in /var/log/cron

I'm running RedHat Linux Enterprise Server ES Version 3 and I've stopped the audit service. Now I'm getting the following error messages in /var/log/cron May 17 07:01:01 pam crond: LAuS error - do_command.c:243 - laus_log: (19) laus_log: No such device May 17 08:01:01 pam crond: (root) CMD... (1 Reply)
Discussion started by: soliberus
1 Replies

9. UNIX for Dummies Questions & Answers

Return codes

Hi, Can anyone tell me if there are return codes for SFTP? If so how would you capture them? I've tried 'man sftp' but its not particularly helpful. Many thanks Helen :confused: (4 Replies)
Discussion started by: Bab00shka
4 Replies

10. UNIX for Dummies Questions & Answers

Help with Return codes

I have the below script I am running on a Solaris system to check the status of a Tivoli Workload Scheduler job and return the status. We need this script to return a '0' if any of the jobs in the stream are in a "EXEC" state and an "1" if in a "HOLD" state. I am not a programmer so I am not sure... (1 Reply)
Discussion started by: leezer1204
1 Replies
Login or Register to Ask a Question