This code from the racket documentation 
----------------------------------------------------
#lang racket 
   
(require racket/date) 
   
(printf "Today is ~s\n" 
          (date->string (seconds->date (current-seconds)))) 

 -------------------------------------------------
runs from the Dr Racket IDE.

If I try and run it with racket --script print_date.rkt

I get no output, and no error.

If I remove the #lang racket line, I will get output from a command line 
invocation.


How would I run the code from the command line, with the #lang line left in?


_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to