Just to share this little tip I discovered today.

Before connecting to your BBB with ssh, you can set the date with this command:

ssh [email protected] date $(date +%m%d%H%M%C%y)

Explanation: Connect to the remote computer and execute the command date giving as argument the current date of the local computer formatted as: month/day/hour/minute/century/year.

So, to keep things simpler, I made a little script, bbb.sh, on my path to connect to the BBB. It accepts an optional argument: date to synchronize before connection:

#!/bin/bash
echo "Starting ssh on beaglebone.local"

if [ "$1" = "date" ]
then
    echo "Synching date:"
    ssh [email protected] date $(date +%m%d%H%M%C%y)
fi
ssh [email protected]


Enjoy
--
tiziano de togni
______________________________________
http://tizziano.altervista.org/

--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to