It was fairly easy when i understood the format of the time string. date -s "2002-05-26 15:00"
As i've got many answers which suggests pulling the time from NTP-servers i must add (which i forgot in the original post) that i needed to set the time in a standalone application. Just a few industrial PC:s will be hooked up in a small network all using the eth0-ports. Now there is an eth1-port as well, which i'll use to hook up network cameras. one camera per computer. It is very important that the camera clock and the computers clock are syncronized. So therefore i have set up a NTP server in the computer for the camera to sync with. Thanx for your help. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]