<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hmm I accidentally ran crontab without any parameters, and instead of throwing me an error message because I didn’t include parameters, it seems to be running in an infinite loop. The only way to kill is ctrl+c. A bug to look into perhaps?<div><br></div><div>More serious though, is that it adds a bunch of junk,<span style="font-family: Menlo; font-size: 11px;">/usr/bin/jsub -N <unwanted name> -once -quiet</span>, to the beginning of each entry, breaking the crontab. It’s already setup to use jsub. Every entry is being marked as invalid where it tries to access something that doesn’t exist. Attempts to override and remove it have failed. This is rendering the crontab to be quite useless.</div><div> </div><div><div><div><div>On May 1, 2014, at 7:45 AM, Amir Ladsgroup <<a href="mailto:ladsgroup@gmail.com">ladsgroup@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">when I tried to add something sane (doing a "git review" <a href="https://gerrit.wikimedia.org/r/#/q/owner:%22Maintenance-bot+%253Cladsgroup%2540gmail.com%253E%22,n,z">for this</a>), the system automatically added "/usr/bin/jsub -N <a name> -quiet" to it and because git review hasn't been installed in jsub instances it returns error and I'm stuck <br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 3:36 PM, Artem Korzhimanov <span dir="ltr"><<a href="mailto:korzhimanov.artem@gmail.com" target="_blank">korzhimanov.artem@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Just to clarify. Am I right that if 'crontab -l' returns empty list and there is no ~/...DATA.crontab in my home directory it means that my cron list has been lost completely?</div>
<div class="gmail_extra">
<br clear="all"><div><div dir="ltr">Best regards,<br>Artem.<div>________________________<br></div><div>Dr. Artem Korzhimanov</div><div>Research Scientist</div><div>Institute of Applied Physics</div><div>of the Russian Academy of Sciences</div>
<div>46 Ulyanov st., Nizhny Novgorod, Russia</div><div>Email: <a href="mailto:korzhimanov.artem@gmail.com" target="_blank">korzhimanov.artem@gmail.com</a></div></div></div>
<br><br><div class="gmail_quote">2014-05-01 13:37 GMT+04:00 Petr Bena <span dir="ltr"><<a href="mailto:benapetr@gmail.com" target="_blank">benapetr@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't think so.<br>
<br>
There is a number of cases where this is not relevant, I don't know<br>
who added that into crontab, but I am pretty sure that nobody from<br>
toolsadmin team is going to remove any line from it as long as it's<br>
sane (for example some simple check that just submit some kind of<br>
e-mail, tail some log file etc, doesn't need to be run as a job, since<br>
the job itself is less resource expensive than submitting it to SGEN).<br>
<br>
So I think you can ignore this in your case. The note should be reworded though.<br>
<div><br>
On Thu, May 1, 2014 at 11:34 AM, Danmichaelo<br>
<<a href="mailto:danmichaelo%2Bwikipedia@gmail.com" target="_blank">danmichaelo+wikipedia@gmail.com</a>> wrote:<br>
> Apologies accepted! But when crontab-ing now, I noted the comment:<br>
><br>
> "Any command specified here will be modified to be invoked through jsub<br>
> unless it is one of the two" [jsub or jstart]<br>
><br>
> Does that mean I should move away from calling qsub directly? If so, there<br>
> should be a note about that here:<br>
><br>
> <a href="https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#What_is_the_grid_engine.3F" target="_blank">https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#What_is_the_grid_engine.3F</a><br>
><br>
><br>
> Dan Michael<br>
><br>
><br>
><br>
> On 1 May 2014 02:31, Marc A. Pelletier <<a href="mailto:marc@uberbox.org" target="_blank">marc@uberbox.org</a>> wrote:<br>
>><br>
>> Hello all.<br>
>><br>
>> Due to a (really) stupid mistake on my part, I have managed to<br>
>> completely lose the crontab of any tool which had automatic changes<br>
>> applied to it (the process which was supposed to make a backup before<br>
>> any changes failed). This affects approximately 50 tools.<br>
>><br>
>> Please accept my most sincere apologies for the work and lost data this<br>
>> might cause.<br>
>><br>
>> That said, if your tool existed before the migration to the new<br>
>> datacenter, you probably still have the backup dating from that time in<br>
>> your tool's home under the name ~/...DATA.crontab<br>
>><br>
>> On the other hand, most tools' crontabs /were/ correctly moved to the<br>
>> new system. There is a '/usr/local/bin/crontab' symlink now pointing to<br>
>> xcrontab -- you should get that one by default unless you have changed<br>
>> your default path.<br>
>><br>
>> If you get a message along the lines of:<br>
>><br>
>> You (user) are not allowed to use this program (/usr/bin/crontab)<br>
>><br>
>> then you are accidentally hitting the wrong one; check your path or type:<br>
>><br>
>> hash -r<br>
>><br>
>> To force your shell to revisit it.<br>
>><br>
>> Again, please accept my apologies for the disruption.<br>
>><br>
>> -- Marc<br>
>><br>
>> _______________________________________________<br>
>> Labs-l mailing list<br>
>> <a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
>> <a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
><br>
> _______________________________________________<br>
> Labs-l mailing list<br>
> <a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
> <a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
><br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org" target="_blank">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</div></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Amir<br><br>
</div>
_______________________________________________<br>Labs-l mailing list<br><a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>https://lists.wikimedia.org/mailman/listinfo/labs-l<br></blockquote></div><br></div></div></body></html>