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
Blue screen of death: 0167:BFF9DFFF
Backup Exec. won't run backup
What is the optimal six disk configuration for Exchange 2007?
How do I interact with loadMovieNum
Event ID 2005 - PerfNet
Function to change the month from numeric to string
using inotify with python
prevent c$ shareing for administrator
Clear Screen
Windows Logs off Immediately after Successful Logon - Faux partitions