Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_SCHEDULER external jobs failing but status of SUCCEEDED?!?!

Re: DBMS_SCHEDULER external jobs failing but status of SUCCEEDED?!?!

From: Radoulov, Dimitre <cichomitiko_at_gmail.com>
Date: Wed, 1 Nov 2006 13:35:19 +0100
Message-ID: <45489486$0$49207$14726298@news.sunsite.dk>


[...]
> The code is wrong.
> You could write it like this:
>
> set -- "${FILEPREFIX}"*
> [ -e "$1" ] 2>&- || echo "Cannot read ${FILEPREFIX}* - Exiting"
[...]

Use -r of course, if you want to verify if you can read the file :)

[ -r "$1" ]

-e FILE

       FILE exists
-r FILE

       FILE exists and read permission is granted

Regards
Dimitre Received on Wed Nov 01 2006 - 06:35:19 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US