[erlang-questions] escript and ctrl+c

Vivek Ayer vivek.ayer@REDACTED
Mon Apr 2 19:23:41 CEST 2012


Hi List,

I've been using escripts to prototype erlang code. It's really great
and you can have something functional (no pun intended) very quick,
similar to prototyping in python.

Anyways, escript serves all my needs except for shutdown signals. I
can't quite figure out how make an exit action like 'Ctrl+C' trigger
something like an 'exit' or 'stop' routine in my scripts. How would I
go about accomplishing this? Help appreciated.

Thanks,
Vivek



More information about the erlang-questions mailing list