Date and Time with Unix and Cygwin
Von: zw (mpc8250@gmail.com) [Profil]
Datum: 09.02.2008 02:34
Message-ID: <fb682331-e275-4d14-a364-63da6ff4ba3b@i7g2000prf.googlegroups.com>
Newsgroup: de.alt.comp.cygwin+co
Datum: 09.02.2008 02:34
Message-ID: <fb682331-e275-4d14-a364-63da6ff4ba3b@i7g2000prf.googlegroups.com>
Newsgroup: de.alt.comp.cygwin+co
Hi I have a unix box and a linux box to run some shell scripts. I have a cygwin PC which acts as a reference clock for the other 2 boxes. In each unix and linux box I like to make periodic ssh calls to this PC to retrieve its current date and time. So I have -bash-3.00# ssh xyz@4.4.4.4 "cmd /c c:/\cygwin/\cygwin.bat date" xyz@4.4.4.4's password: xyz@xyz_pc2 ~ But I'm not getting a response back with the date. But if I -bash-3.00# ssh xyz@4.4.4.4 "cmd /c date /T " xyz@4.4.4.4's password: Fri 02/08/2008 How can I retrieve the date and time from cygwin ? I need that to format the date and time which XP DOS doesn't allow me to. thanks Any help is appreciated[ Auf dieses Posting antworten ]
Antworten
- Juergen Scholich (09.02.2008 17:31)
