Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] stdout instead of print? Re

From: balayo::mindspring::com at: 8-Sep-2000 20:28

Howdy guys, Thanks Joel,
> Having said all that... > > You can only set the date on your system as root. Where is the > script getting the value of date-string from? I'm just highly > puzzled as to the use (and safety) of the exact example you asked > about. > > -jn-
I just wrote a simple script that grabs the appropriate line from the Navy's time page, then makes a string of digits out of it that date can easily use. I was going to write a litte shell script, and just wanted to make the results of the rebol script usable by it. It might be as easy as #!/bin/sh date < rebol-generated.txt or date << rebol-generated.txt or date | rebol-generated.txt (can't remember which off-hand) I don't think this will work quite right, though, becuse of the lag between the execution of each script (the *.r then the *.sh)--the time would be wrong by a few seconds. does that make any sense? -- Spend less time composing sigs. -tom