Hi,
I would like to check the existence of files (doesn;t matter the number of files) in a directory.
My file is named in the following manner (always ending with " myfile "). Can anybody give me some guidance?
EG:
abc1_myfile
sdfr_myfile
sffgd_myfile
and so on ......
My... (9 Replies)
Hello
I am having a requirement like if there is no file in the directory then i need a message to pop on after the execution of the script.
My script basically does for File in `ls -t $DIRECTORY | tail -1`;
if there is no file the DIRECTORY then the script is simply exiting with out... (2 Replies)
I have requirement where i need to search for files which start with SALESORDER and PURCHASEORDER. i need to process the files with SALESORDER first and then PURCHASEORDER. If SALESORDER files are not there i dont want to process PURCHASEORDER and i want to come out of script. I have written a code... (4 Replies)
i want to check if the file is in the directory or not, and also it should be handle error conditions, like missing files and report the error and exit.
i did something like this:
file ="hello"
if !test -e "${file}"
then echo "No such files exist!"
exit 1
else
do something.......
fi
... (1 Reply)
I am using the following command to check for files on a Unix (Solaris 9) and on Linux:
if (-r *.) then
echo " las file found"
else
echo " no las file found"
endif
If no las file is present, the "no las file found" message is displayed. If a las file is present, however, I get... (9 Replies)
Hi,
I am a unix newbie. I need to write a script to check wheteher another script is still running. If it is, then sleep for 30m and then check again if the script is running. If the script has stopped running then, I need to come out of the loop.
I am using RHEL 5.2 (2 Replies)
I need to check for the existence of a file *.log in a specific directory using a perl script.
Presently am not in that particular directory.
So i am using chdir ("/path/to/my/file)
And then i am using the -e in an if statement to check if it exists.
if (-e $File) {......}
$File contains the... (1 Reply)
Hi,
I am looking for a shell script with the following.
1. It should check whether a particular file exists in a location
#!/bin/sh
if ;
then
echo "xxx.txt File Exists"
else
echo "File Not Found"
fi
2. If file exists, it should check for the modified date and run a command... (2 Replies)
hi
i wanted to check if the file exist or not(multiple files)
DIRE=/home/V478
if ;
then
echo "file present"
else
echo "file not present"
fi
But i am getting the error as
: [: unexpected operator/operand (3 Replies)
Hello Folks,
On Below Script, I want to apply condition.
Condition that it check the directory for files if not found keep checking.
Once directory have files and founded do the calculation and finish the code.
Script to check the files existence inside a directory, If not then keep... (16 Replies)
Discussion started by: sadique.manzar
16 Replies
LEARN ABOUT DEBIAN
globus_openssl_error_utility
Error Helper Functions(3) globus gsi openssl error Error Helper Functions(3)NAME
Error Helper Functions -
OpenSSL Error Match
globus_bool_t globus_error_match_openssl_error (globus_object_t *error, unsigned long library, unsigned long function, unsigned long
reason)
Wrap OpenSSL Error
globus_object_t * globus_error_wrap_openssl_error (globus_module_descriptor_t *base_source, int error_type, const char *source_file, const
char *source_func, int source_line, const char *format,...)
Detailed Description
Utility functions that deal with Globus OpenSSL Error objects.
This section defines utility function for Globus OpenSSL Error objects.
Function Documentation
globus_bool_t globus_error_match_openssl_error (globus_object_t *error, unsigned longlibrary, unsigned longfunction, unsigned longreason)
Check whether the error originated from a specific library, from a specific function and is of a specific type. This function checks
whether the error or any of it's causative errors originated from a specific library, specific function and is of a specific type.
Parameters:
error The error object for which to perform the check
library The library to check for
function The function to check for
reason The type to check for
Returns:
GLOBUS_TRUE - the error matched GLOBUS_FALSE - the error failed to match
globus_object_t* globus_error_wrap_openssl_error (globus_module_descriptor_t *base_source, interror_type, const char *source_file, const char
*source_func, intsource_line, const char *format, ...)
Wrap the OpenSSL error and create a wrapped globus error object from the error. This function gets all the openssl errors from the error
list, and chains them using the globus error string object. The resulting globus error object is a wrapper to the openssl error at the end
of the chain.
Parameters:
base_source The module that the error was generated from
error_type The type of error encapsulating the openssl error
source_file Name of file. Use __FILE__
source_func Name of function. Use _globus_func_name and declare your func with GlobusFuncName(<name>)
source_line Line number. Use __LINE__
format format string for the description of the error entry point where the openssl error occurred, should be followed by parameters to
fill the format string (like in printf).
Returns:
The globus error object. A globus_result_t object can be created using the globus_error_put function
See also:
globus_error_put()
Author
Generated automatically by Doxygen for globus gsi openssl error from the source code.
Version 2.1 Wed Jan 25 2012 Error Helper Functions(3)