From: Joe Crawford (abjcrawford@yahoo.com)
Date: Mon Jan 17 2005 - 15:47:37 EST
Team:
Today we ran into an issue..A script (run a /sbin/sh)
took 100% CPU on out prod system. This script runs as
cron and updates the .rhosts file (we need this file).
There was a for loop inside the script which performs
nslookup (which i think never returned anything). My
question is
1. should this script be run in /sbin/sh and what are
the negative effects of that?
2. I think it was running the nslookup command to get
the full hostname with domain info. Is it a good idea
to run nslookup inside a for loop. If there is an
issue in getng the info wont it go around? what are
the best way to pickup a full hostname with domain
info in that case?
Please advise.
Thanks
Joe.
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:45 EDT