Hi, if I remember right the ``-n 1'' means, that top should do one snapshot and exit. Due to my experiences, the first snapshots are "liars", thus this solution donesn't deliver much useable results. For machines where this is valuable (not desktops) I use to setup ``sar'', the System Activity Reporter. It is in the sysstat package.
0.02$ Frank On Fri, 2005-04-01 at 20:00 +1200, Nick Rout wrote: > probably cron doesn't know the path to top > > > try > > /usr/bin/top -b -n 1 | mail <email address> > > > > On Thu, 2005-03-31 at 22:31 -0500, Matthew Cline wrote: > > I tried to run the following command as a daily cron job: > > > > # top -b -n 1 | mail <email address> > > > > However, all I get is a blank email. When I run this command manually, > > I get what I expected. Is there any reason why top would not work from > > cron? > > > > > > Thanks in advance, > > > > Matt > > -- > > [email protected] mailing list > > -- [email protected] mailing list
