[HPADM] /sbin/sh script taking 100% CPU
From: Joe Crawford (abjcrawford_at_yahoo.com)
Date: 01/17/05
- Previous message: Marshall, Richard: "[HPADM] Configuration, Release management"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 17 Jan 2005 12:47:37 -0800 (PST) To: hp <hpux-admin@dutchworks.nl>
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)
- Previous message: Marshall, Richard: "[HPADM] Configuration, Release management"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|