Path: utzoo!attcan!uunet!nih-csl!elsie!ado From: ado@elsie.nci.nih.gov (Arthur David Olson) Newsgroups: comp.protocols.nfs Subject: Re: RDATE.EXE for PC-NFS Summary: Round midnight Message-ID: <90378@elsie.nci.nih.gov> Date: 9 Nov 90 19:13:41 GMT References: <3193@jaytee.East.Sun.COM> Followup-To: poster Organization: NIH/NCI/LEC, Bethesda, MD Lines: 20 A revised version of rdate.bat that avoids problems at midnight is attached. -- Arthur David Olson ado@elsie.nci.nih.gov ADO and Elsie are Ampex and Borden trademarks echo off if "%1"=="" goto usage if not "%2"=="" goto usage nfsping %1 > nul if errorlevel 1 goto noanswer rsh %1 date + > nul if errorlevel 1 goto bottom rsh %1 date '"+time 0%%ndate %%m-%%d-%%y%%ntime %%H:%%M:%%S%%nexit"'|command>nul goto bottom :usage echo %0: usage is %0 host goto bottom :noanswer echo No answer from %1. :bottom