1830168 Members
2072 Online
109999 Solutions
New Discussion

date command

 
SOLVED
Go to solution
j773303
Super Advisor

date command

I'd like to use date to chage the remote server time. I know linux has the rdate command. Does HP-UX has the same command ?
But not NTP or remsh . Thanks.
Hero
8 REPLIES 8
T G Manikandan
Honored Contributor
Solution

Re: date command

j773303
Super Advisor

Re: date command

Hi,
Where I can get rdate command ? Thanks in advanced.
Hero
Sยภเl Kย๓คг
Respected Contributor

Re: date command


Look at this
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=53532
regards
SK
sunilhcl@rediffmail.com
Your imagination is the preview of your life's coming attractions
T G Manikandan
Honored Contributor

Re: date command

rdate for hpux is attached in the link provided above
j773303
Super Advisor

Re: date command

I.ve got rdate from link. But it is just show the remote server time. Is it possible modify the remote server time. Thanks in advance.


Usage: rdate [-p]
Hero
Muthukumar_5
Honored Contributor

Re: date command

rdate command can be used to get remote server's date informations there. And also used to set current systems timinig with the result date returned from remote server.

rdate [-p] [-s] [host...]
-p Print the time returned by the remote machine.
-s Set the system time to the returned time.

If you want to change date informations of remote system then, try with remsh there. It is easy more there to do remote operations. IF you want to have secure one then try with ssh operation.

HTH.
Easy to suggest when don't know about the problem!
j773303
Super Advisor

Re: date command

# ./rdate -s tainw
rdate: Unknown host `-s'. (Connection timed out).

Looks like rdate don't have the -s option. Is my rdate version is too older? where can I download it. Thanks.
Hero
Muthukumar_5
Honored Contributor

Re: date command

I hope you are not having rdate with -s option there.

You can get rdate project details from,
http://freshmeat.net/projects/rdate/

You have to compile there. Just curious, why are you in-need of rdate -s option more. You can set the retrieved from remote machine to local machine with date command itself :)

rdate -p

will return date informations of host. Store in a variable do appropriate changes with date command.

HTH.
Easy to suggest when don't know about the problem!