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
Automatic Typing. Bug? Virus?
Open User's Mailbox after Disabling Account in AD
Taskbar Freezing when logging on and at random intervals
Looking for High-Volume SMTP Hosting Provider for Non-Commercial Email.
trying to use a script python on xp, read on a truecrypt container, i receive a permission problem when i'm the administrator, help?
google search method
Ports that need to be opened for IMAP clients to access Exchange 2007 through firewall.
Dragging down formula from a cell in Excel
Internet Explorer
concatenating multiple rows into a single row in a sybase table