|
![](/i/fill.gif) |
Peter Popov wrote:
>
> On Sun, 29 Aug 1999 02:40:12 +0930, PoD <pod### [at] merlin net au> wrote:
>
> >Er. how about something like 'time > time.txt' in DOS/Windoze or 'date >
> >time.txt' in *n*x.
> >It won't be very portable though.
> >
> >Cheers, PoD.
>
> This was the first thing that I tried the first time this question was
> brought up. Unfortunately the time command expects stdin input. A
> simple echo. > time won't work :(
>
One possibility would be to create response file, which contains
carriage return /newline and direct it as input to time command. I.e.
create text file nl.txt, which contains single newline. Now invoke:
time <nl.txt >time
BTW, if You have NT, then it has /T option, which just ouputs time:
C:\>time /T
16:15
Post a reply to this message
|
![](/i/fill.gif) |