Microsoft
Software
Hardware
Network
Question : Shell status return value
Hi,
i have created a shell script (.ksh) the runs three queries(plsql). These three queries create three csv files which are saved in a directory called results. I need a way to check if these csv files have been created(if the proceeduree was a success or failure). I need a value of 0 or other to be returnd based on the success or failure of the proceedure. Ideally i would prefer somthing that could just be placed into my current script, without any manipulation(to existing shell script).
Thanks very much
Answer : Shell status return value
How is the name of the file generated?
I'm not exactly sure, but this may work.
if [ -s ${LOGDIR}/${SCRIPT}_${LOGD
ATE} ]
then
echo "file exists and has data"
else
echo "File does not exist or contains no data"
fi
Random Solutions
Error when creating SSIS job with SQL Server Agent in SQL Server 2005
Ghost - VERY VERY SLOW on Intel S5000VSA RAID Configuration.
How to configure smtp relay on Redhat enterpise server version 5?
What is the source of this error in the windows registry?
Rowcount problem
stop excel updating cell references
Folders cannot be opened
Backup Exec cannot attach to resource
How can i find the exchange server name to add outlook clients?
Linked Sharepoint List in Access 2007, read only?