Arc Forumnew | comments | leaders | submitlogin
4 points by parenthesis 6140 days ago | link | parent

In file script.arc :

  (prn "Hello, you know!")
  (quit)
In file script :

  #!/bin/bash
  mzscheme -m -f as.scm  < script.arc
(Putting /.../as.scm if necessary.)

Then

  chmod +x script
And

  ./script


2 points by scav 6139 days ago | link

Hmm. Problem is, that means stdin is your arc script. For many scripting tasks, you want stdin to be the input to your script, e.g. a pipe or console or redirected file.

-----

1 point by offby1 6140 days ago | link

I got no problem with that, if it works! Thanks

-----

2 points by apotheon 6140 days ago | link

Any way to do it that isn't a hideous hack?

-----