[CentOS] Pause time

Mon Apr 19 21:02:58 UTC 2010
cahit Eyigünlü <cahit.eyigunlu at gmail.com>

Thank you i will check this out

2010/4/20 Les Mikesell <lesmikesell at gmail.com>

> On 4/19/2010 3:32 PM, cahit Eyigünlü wrote:
> > i have a algorthm depending on a circul of a server time in a 10 day
> > period and i want to execute this command :
> >   sudo date MMDDhhmmYYYY
> > periodically in every 10 day :D
>
> Make a script file like:
> #!/bin/sh
> date MMDDhhmmYYYY
> echo /path/to/script | at now + 10 days
>
>
> Chmod +x the script and run it as root at the starting time you want.
> It will run itself again in 10 days.  The "now + 10 days"  is literal -
> the program will do the math.
>
> But, some strange things may happen to any cron jobs or other at
> commands that span the time warp.
>
> --
>   Les Mikesell
>    lesmikesell at gmail.com
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100420/8b17b055/attachment-0005.html>