News for hackers. Stuff that matters.

Ask HN: How to run arc web app in the background?

I download the web app from http://ycombinator.com/arc/arc3.1.tar, and deploy it. ssh to my host, then :

mzscheme -f as.scm

(load "news.arc")

(thread (nsv))

But when i exit from ssh, the server "nsv" is down. so i can't back to the prompt.

I try this: "mzscheme -m -f as.scm < news.arc &", but i got errors like "Error: "Bad object in expression #<eof>"

How shoud i do?

( 3 comments | 2 points | on HN )
Re:Ask HN: How to run arc web app in the background? by mjdwitt on Monday March 05, 2012 @11:07PM (#3669606)
I don't know the answer myself, but if you head on over to http://arclanguage.org, I bet the people there can point you in the right direction.
Re:Ask HN: How to run arc web app in the background? by aiscott on Monday March 05, 2012 @08:59PM (#3669329)
I doubt this is the best way, but you could launch it in a GNU Screen session or a TMUX session.

You can then "detach" from Screen or TMUX, end your ssh session, and scheme will still be running. The cool thing is you can later ssh into your host, and re-attach to Screen or TMUX as if you never disconnected.

Whether it's the best way to run news.arc, I can't say, but they are very useful tools to learn about, and should work for this problem.

http://en.wikipedia.org/wiki/GNU_Screen

http://en.wikipedia.org/wiki/Tmux

Re:Ask HN: How to run arc web app in the background? by feilaoda on Monday March 05, 2012 @10:09PM (#3669469)
Thanks man. I download Screen and it is perfect.

I use screenie:

> apt-get install screenie

> screenie