error handling in shell script

This is a discussion on error handling in shell script within the Shell forums, part of the Tools category; Hi, i am writing a cleanup script which will delete all the entries in db tables which will delete all the old entries beyond a input date. The problem i ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > Shell

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 02-12-2008, 07:26 AM
Default error handling in shell script

Hi,
i am writing a cleanup script which will delete all the entries in db tables which will delete all the old entries beyond a input date.

The problem i am facing is- when the date input is invalid then it is deleting all the files..
what i want is when an invalid date is entered then it should just exit the process without any deletion.

can anyone help?
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 12:45 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger