[racket] command line usage

From: zzbbaadd at aol.com (zzbbaadd at aol.com)
Date: Tue Feb 15 06:49:18 EST 2011

 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110215/ae20ff25/attachment.html>

Posted on the users mailing list.