copy date from within solaris or linux

Get the date from a server
# date +%m%d%H%M%Y
060510252012
Use that result to set the date in another server
# ssh otherserver
otherserver#date 060510252012

Leave a Reply

Your email address will not be published. Required fields are marked *