Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_SCHEDULER external jobs failing but status of SUCCEEDED?!?!
[...]
> 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
![]() |
![]() |