FidoNet Echomail Archive
os2bbs

<<< Previous Index Next >>>

From: Torsten Bamberg
To: Joe Schweier
Date: 2018-11-25 21:00:20
Subject: Question

Hallo Joe!

25.11.2018 10:14, Joe Schweier schrieb an Torsten Bamberg:

 JS> That was more than I was looking for... Looking through it... I don't
 JS> do OS/2 much... used it in the mid 90's bought it to play with it... I
 JS> have some BBS software that is OS/2 and I'm playing with it.
Well, the date.exe command on arcaos/ecomstation is very special.

 JS> I'll just ask one more time... do you know the commandline needed to
 JS> echo the current darte into an asc or TXT file??
It works in two easy ways:
1.)
c:\Foo\klibc\bin\date -u >> joes.asc

the path to date.exe must be used. Otherwise date wont work properly. Seems to
be a big bug.

the second way is like this:

=##= Anfang "date_.cmd" =##=
/*-------------------------------------------------------------------------*/
/* date_.cmd                                                               */
/* Rexx for typical date                                                   */
/* 25.11.2018  Torsten Bamberg                                             */
/*-------------------------------------------------------------------------*/
call RxFuncAdd 'SysSleep', 'RexxUtil', 'SysSleep'

datestring=date('N')

foo_out = joes.asc

echo' 'datestring' >> 'foo_out

exit(0)
=##=   Ende "date_.cmd" =##=


This rexx script creates or appends a 11/25/18 in a textfile named joes.asc

 JS> Because the one I used for windows and or DOS doesn't work.
I know this now. the date-command is a bit tricky and buggy.

 JS> Thanx
You are welcome.

 JS> Joe
Bye/2 Torsten

... MAILBOX01 on OS2: up 8d 18h 02m load: 42 proc, 162 threads (tbupv1.0)
--- GoldED+ 1.1.5-18
 * Origin: DatenBahn BBS Hamburg (2:240/5832)
SEEN-BY: 57/0 153/250 226/100 267/800 317/2 393/68 633/0 267 280 281 412
SEEN-BY: 640/1384 712/132 620 848 770/0 1 100 330 340 772/0 1 210 500
@PATH: 240/5832 229/426 393/68 770/1 712/848 633/280 267


<<< Previous Index Next >>>