<div dir="ltr">Doing some cursory Googles (I don't use at much myself either, except when upgrading salt minions) it seems like atd doesn't log very much at all, unless you run jobs with the -m option. Another suggestion was to wrap the command being run with at in a wrapper to syslog:<div><br></div><div>ex: </div><div><div>#!/bin/bash</div><div>logger -i -t mycmd Starting</div><div>/bin/somecommand</div><div>logger -i -t mycmd Completed</div><div>exit 0</div></div><div><br></div><div>It looks like you're out of luck for determining what happened in the past, but going into the future either the -m or wrapper options might work for you.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br><div>Theodore Baschak</div><div><a href="https://ciscodude.net/" target="_blank">https://ciscodude.net/</a></div><div><a href="https://theodorebaschak.com" target="_blank">https://theodorebaschak.com</a>/</div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Feb 26, 2016 at 1:59 PM, Trevor Cordes <span dir="ltr"><<a href="mailto:trevor@tecnopolis.ca" target="_blank">trevor@tecnopolis.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a way to tell after the fact what command(s) an "at" command ran?<br>
I got an email about an error in a cron job and it appears to be an at<br>
command that was queued up. The error is suspicious, and I don't remember<br>
queueing this at command (though I do use at from time to time).<br>
<br>
I can find in logs that it was atd running it under my user id, but the at<br>
queue is now empty and I can't find a way to retroactively see what<br>
commands/script tried to run. I'm doing a full fs search on some of the<br>
error strings but I am not hopeful.<br>
<br>
Is there a way to find out more about what at ran? Are there options that<br>
in the future would give me more log/debug output so I can more easily<br>
answer this type of question?<br>
_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" rel="noreferrer" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</blockquote></div><br></div>