Re: OT: Linux Interview Questions
On Thu, Mar 15, 2007 at 12:36:12PM -0400, Bernd Prager wrote:
> > Can some of you post some Linux questions in general and also about
> > Debian? May be with short answers but that's not necessary. If I can
> > get a big list of questions, I'll try to get answers and the more
> > confident I will be.
> >
> > Please also post tricky and troubleshooting questions.
>
> On of my favorite:
> Q: How does the correct crontab entry looks like to run a script only on
> the last day of every month?
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Very very interesting!
* * * * * [ `date -d tomorrow +%d` -eq '01' ] && /the/script
It is basically a command that runs everyday checking if tomorrow's day
of month = 01
not exactly the right answer but close enough
--
Tarek
Reply to: