The UNIX and Linux Forums  

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
exit command cdines UNIX for Dummies Questions & Answers 3 05-28-2008 04:05 AM
Emdedding my script in to exit command sharif UNIX for Advanced & Expert Users 2 03-05-2008 04:14 AM
Getting the exit status of a remote command zoonalex Shell Programming and Scripting 1 08-23-2006 01:58 PM
Move command return with exit code of 2 handak9 UNIX for Advanced & Expert Users 1 08-26-2004 02:40 AM
using exit command in a shell script jpprial UNIX for Dummies Questions & Answers 1 02-16-2001 09:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Exit TOP command after 1 min

Hi,

I am running following command: top -p <psid> | grep used

I want to send o/p of above command to some txt file but it do not break as it keeps going. How can I exit 'top -p <psid> | grep used' after certain time like 1 min or 2 mins?
Reply With Quote
Forum Sponsor
  #2  
Old 08-22-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,328
Use the -n option of top.

Regards
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0