Created
September 2, 2014 13:19
-
-
Save alepez/55a2007b038aa0b11914 to your computer and use it in GitHub Desktop.
set remote datetime to localhost datetime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datetime=$( date +%m%d%H%M%Y ); ssh root@remote_addr "( date $datetime; /sbin/hwclock --systohc )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment