<div dir="ltr">Nice will work nicely!<div>I think I should have apt run at 0400 hours.</div><div>.... I just relooked at the man page and don't know if it is what I want. Like I said I want it to run at 4AM. I think nice just makes it take a less prioritized position.</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">MIME-Version: 1.0
Received: by 10.182.44.129 with HTTP; Sat, 19 Sep 2015 09:25:25 -0700 (PDT)
In-Reply-To: <CAO2XAM4ywXuR3-VOEgBmede7PZy7JdeuSb+nS2bsxn=<a href="mailto:KZ7OTCA@mail.gmail.com">KZ7OTCA@mail.gmail.com</a>>
References: <<a href="mailto:CAFRvunJLLW28WqsgpqkK1Oan4skjY7wZ1DX2Psbx4O4C3UBFZg@mail.gmail.com">CAFRvunJLLW28WqsgpqkK1Oan4skjY7wZ1DX2Psbx4O4C3UBFZg@mail.gmail.com</a>>
<<a href="mailto:0C928FC7-441F-4E11-916B-A65A4417EF37@deviltracks.net">0C928FC7-441F-4E11-916B-A65A4417EF37@deviltracks.net</a>>
<<a href="mailto:830760A8-C3A7-455F-BC14-C436BC5C7A50@deviltracks.net">830760A8-C3A7-455F-BC14-C436BC5C7A50@deviltracks.net</a>>
<CAO2XAM4ywXuR3-VOEgBmede7PZy7JdeuSb+nS2bsxn=<a href="mailto:KZ7OTCA@mail.gmail.com">KZ7OTCA@mail.gmail.com</a>>
Date: Sat, 19 Sep 2015 12:25:25 -0400
Delivered-To: <a href="mailto:bmike1@gmail.com">bmike1@gmail.com</a>
Message-ID: <CAFRvunK8=kxWxj9CBo8WuO+-p-4EH5gPoA+TZe4Jv=r78=<a href="mailto:f3VQ@mail.gmail.com">f3VQ@mail.gmail.com</a>>
Subject: Re: memory usage
From: Michael Havens <<a href="mailto:bmike1@gmail.com">bmike1@gmail.com</a>>
To: Main PLUG discussion list <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>>
Content-Type: multipart/alternative; boundary=047d7b5d42d875317105201c18f4
</pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 10:12 PM, Keith Smith <span dir="ltr"><<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I think crontab -e is the user crontab. In other words it will edit the current user's crontab. I think I have just used vi to edit they system crontab.<div><div class="h5"><br>
<br>
<br>
<br>
On 2015-09-21 19:04, Michael Havens wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I thought that was a good idea!<br>
<br>
bmike1@c521 ~ $ sudo crontab -u bmike1 -l<br>
no crontab for bmike1<br>
bmike1@c521 ~ $ sudo crontab -u root -l<br>
no crontab for root<br>
bmike1@c521 ~ $<br>
<br>
But not in my case. Unless of course there is another user it is run<br>
under.<br>
So the mouse wheel in my mind started to creak..... So I inspected the<br>
man for crontab.... which inspired me to cat /etc/cron*....<br>
which lead me down the path to ls /etc/cron.daily/<br>
and in that directory is a file! /etc/cron.daily/apt/<br>
<br>
So How to edit the file? Ask PLUG or ask the web? I opted to ask the<br>
web. It told me: edit crontab with crontab -e<br>
So I tried:<br>
bmike1@c521 /etc/cron.daily $ crontab -e /etc/cron.daily/apt<br>
<br>
bmike1@c521 /etc/cron.daily $ crontab /etc/cron.daily/apt -e<br>
<br>
bmike1@c521 /etc/cron.daily $ sudo crontab /etc/cron.daily/apt -e<br>
<br>
and<br>
<br>
bmike1@c521 /etc/cron.daily $ sudo crontab -u bmike1<br>
/etc/cron.daily/apt/ -e<br>
<br>
all of which responded with:<br>
crontab: usage error: no arguments permitted after this option<br>
usage: crontab [-u user] file<br>
crontab [ -u user ] [ -i ] { -e | -l | -r }<br>
(default operation is replace, per 1003.2)<br>
-e (edit user's crontab)<br>
-l (list user's crontab)<br>
-r (delete user's crontab)<br>
-i (prompt before deleting user's crontab)<br>
bmike1@c521 /etc/cron.daily $<br>
so I looked a little more in the web and so tried:<br></div></div>
sudo CRONTAB -E bmike1<div><div class="h5"><br>
which gave the same error.<br>
So now I need to ask what I'm doing wrong.<br>
<br>
On Mon, Sep 21, 2015 at 9:19 PM, Michael Butash <<a href="mailto:michael@butash.net" target="_blank">michael@butash.net</a>><br>
wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I've noticed on lower-end systems, that daily cron will peg a system<br>
for a bit while that occurs. I had an ancient imac with ubuntu<br>
installed that the apt update would hang the system for like a<br>
half-hour with an old 400mhz ppc proc, consuming all cpu and memory,<br>
then swap and thus disks too. I finally just disabled it, and<br>
shortly thereafter retired the outdated system itself that it<br>
obviously had outlived its usefulness vs. power drawn.<br>
<br>
You likely have the same issue, just when using it, the update will<br>
slam the system. Might be better off doing it manually, or setting<br>
the update time for the cronjob to overnight when not using it.<br>
<br>
-mb<br>
<br>
On 09/19/2015 09:25 AM, Michael Havens wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the problem seems to have been checkapt.py . I tried to figure out<br>
what it does and it seems that it locks a database (apt's?). But<br>
it couldn't of been apt's as I wasn't running apt. Then I ran top<br>
again and it seemed to have corrected itself after 10 or fifteen<br>
minutes. Am I correct in what I think it does? Is it safe to kill<br>
if this happens again?<br>
</blockquote>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
</div></div><a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [1]<br>
</blockquote>
<br>
--<br>
<br>
:-)~MIKE~(-:<br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><span class=""><br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Keith Smith</font></span><div class="HOEnZb"><div class="h5"><br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8000001907349px">:-)~MIKE~(-:</span><br></div></div></div></div></div>
</div>