hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : linux script for "top" output
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

linux script for "top" output

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-14-2005, 01:19 PM
caligal caligal is offline
New Member
 
Join Date: Aug 2005
Location: Moonachie, New Jersey
Posts: 3

linux script for "top" output


caligal once again!
Hi out there!
I'm working in redhat and trying to automate a command to give me "top" output to a file.
When i just go ahead and type

Type >top -n 3 >> /home/caligal/dailytoplog.out

It gives me just what i want 3 iterations of readable output from top in a file.

When i create a script with the exact same command in it to be automated with a cron (later), the output in the file is just a jumbled mess of lines running together. I've even tried the -b option to make a batch file for ouput to a file and i get the same result when i run the script.
Can somebody tell me what is wrong ?? the very same command works if i run it manually???
I need this for monitoring and testing software that is running on our servers that may be a potential problem and i can't sit all day running these every 5 minutes on all our web servers manually.
Any assistance would be more than appreciated. . . time is of the escence. Thanx to all in advance. caligal

Reply With Quote


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Hosting Sales and Promos Roundup – April 26, 2013 Web Hosting News 2013-04-26 16:31:48
Big Data and Cloud Drive Enterprise Linux Adoption: Report Web Hosting News 2013-03-27 12:54:34
Web Host MochaHost Adds New Features to Linux VPS Hosting Plans Web Hosting News 2012-08-01 15:52:14
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
Linux Foundation Website Down After Security Breach Last Week Web Hosting News 2011-09-12 20:32:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?