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
2 different Event 108 errors on both SSRS 2005 and 2008
Virus Symptom ? Explorer shows folders duplicated (not me)
how to use "v2.0.50727" in "v1.1.4322"
Need to run Exchange 2007 in domain with trust
Syncing Yahoo! Address & Calendar
active sync error with new certificate
can you get the alias of a column in a view with INFORMATION_SCHEMA
Microsoft Proxy Client for Linux
wireless driver
Workstation cannot access Workgroup Server