is_existing
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 04 November 2020
Index
Return to Main Contents
 
NAME
is_existing - test if a file or directory is existing
 
SYNOPSIS
edrc/lib/is_existing
[
-h
]
is_existing
file
[
timeout
]
 
AVAILABILITY
WA2L/edrc
 
DESCRIPTION
check if a
file/directory/link
etc. is existing and accessible
by the calling user.
This command does not hang if for instance
the NFS resource where the
file/directory/link
is located is not available.
There is the possibility to specify a timeout
value when the default of 0 second is not sufficient.
 
OPTIONS
- -h
 - 
print usage message.
 - file
 - 
file/directory/link to check if it exists.
 - timeout
 - 
timeout in seconds.
This allows to check if a resource is existing that needs
some time to get available (as an automounted NFS directory). 
the default timeout is 
0
seconds.
 
 
ENVIRONMENT
-
 
EXIT STATUS
- 0
 - 
element exists.
True 
is returned to
stdout.
 - 1
 - 
element is not existing or is not accessible within the
given 
timeout.
False
is returned to 
stdout.
 - 4
 - 
usage message printed.
 
 
FILES
-
 
EXAMPLES
-
 
SEE ALSO
edrcintro(1),
is_writeable(3),
test(1)
 
NOTES
-
 
BUGS
-
 
AUTHOR
is_existing was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net . 
 
COPYRIGHT
Copyright © 2020
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:53:16 GMT, August 28, 2024