The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
user password forever xramm SUN Solaris 5 08-29-2007 05:26 AM
Master Your Linux Keyboard (And Fix Caps Lock Forever) - EnterpriseNetworkingPlanet iBot UNIX and Linux RSS News 0 07-09-2007 09:30 PM
msgrcv pending forever !!! Yun Gang Chen High Level Programming 3 01-03-2006 03:39 AM
make command legato UNIX for Dummies Questions & Answers 8 05-11-2005 05:06 AM
AIX 4.3.3 takes forever to log in Jwoollard AIX 3 03-14-2005 07:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2008
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
how can i make sar command run forever ?

Hello all
i found out about the sar command but when looking in the man pages
there is no way to make sar working for ever .. only
with some kind of interval . like sar 2 30 .
my question is can i just run sar for ever ?
  #2 (permalink)  
Old 01-30-2008
pt14 pt14 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 28
create a cron entry
  #3 (permalink)  
Old 01-30-2008
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
Please explain

Please explain
  #4 (permalink)  
Old 01-30-2008
pt14 pt14 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 28
type crontab -e at the command prompt. vi editor opens. Make the below enrty in the editor

* * * * * sar > sarlog

save and exit editor
  #5 (permalink)  
Old 01-30-2008
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
well i did that , exit the vi editor
and then whet ?
  #6 (permalink)  
Old 01-30-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
Code:
for ((;;)) do sar 2 30; sleep 10; done &
- this will start command 'sar 2 30' every 10 seconds, and will put it in the background.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0