![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get date and time for past 1 hour from current date | spch2o | Shell Programming and Scripting | 5 | 08-29-2008 05:32 AM |
| Processing a log file based on date/time input and the date/time on the log file | primp | Shell Programming and Scripting | 4 | 03-16-2008 11:23 AM |
| To retrieve Date/Time from Windows by unix/linux boxes | mpc8250 | Shell Programming and Scripting | 4 | 02-09-2008 12:31 AM |
| Linux Going Big Time and Prime Time Against Windows, UNIX (WSJ) (Addict 3D) | iBot | UNIX and Linux RSS News | 0 | 06-21-2007 05:10 PM |
| Listing the creation date/time of a file in unix | unipepper | Shell Programming and Scripting | 6 | 02-15-2006 07:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello all,
I'm sorry for such a silly help. I have 8 unix machines which include AIX, IRIX, HPUX, SGI. I wanted a script that would compare/ check the date and time on all machine and send me a mail if some system has different date. how can i do it with a single script It can check date and hour and if possb min. I would be thanksful if any one could help me with this. Regards, Pradeep Kulkarni. |
|
||||
|
Hi Pradeep,
To get the current time of any machine, try to read the data from port no 13. For e.g. Using telnet : Telnet <machine name> 13 Trying <I.P Address>... Connected to <remote host>. Escape character is '^]'. Mon Jul 25 18:37:04 2005 Connection closed by foreign host. U can get the current time for remote machine. Regards, Amit Sapre |
|
||||
|
Hello all,
Sorry for the delay in reply. i knew about NTP but i wantd a script that would post a mail to me about this information. i did try Telnet <machine name> 13 and it works but how do i capture this data and put it in file and mail...??? Rgds, Pradeep Kulkarni. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|