Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Shell script to Display status
Name: Madhugopal Date: March 14, 2009 at 14:09:38 Pacific OS: solaris Subcategory: Opinions
Comment:
Hi . Im a DBA i dont much knowledge about shell scripting can anybody help me out in my requirement . i have output file like below : <SID> dif0 online backup at 200903100758. Exit code: 0.
If the output file returns exit code 0 then its success if not failled My requirement is to display the backup status with backup date <Mar 10 2009> Something like below if exit code 0 it should return Mar 10 2009 Backup success else Mar 10 2009 backup failled My try on the requirement : j=0. i=`more <logname>|grep dif*|tail -01 |awk ' { print $9 }'` if [ $i=$j ] then print "Backup success" else print "Backup failled" fi
This gives me backup success or failure but without date . im not able to interpret the date in to <month date year> bec the date in the log contains time of completion .
Summary: hello. I am new to scripting...so help me guys. I have a table of format: aa 1 1/2/2009 ad 1 3/2/2009 ab 2 2/2/2009 aa 3 2/2/2009 Want to know shell script that gives...
Summary: Hi, I want to write a shell script on Solaris 9 box to scan a log file and obtain the user login attempt details. In short can any one help on writing a shell script by which I could scan through a...