I have an Erlang application. I don't like bash so I wanted to use a script to start my program. All is nice but, to the erlang process, you can attach after you have started it, send commands and detach.
1) So in first case I start the program with python:
erl = "/home/ezio_auditore/IdeaProjects/chatserver/rel/mongooseim/bin/mongooseim"
opts = "start"
subprocess.check_call([erl, opts])
The I go an try to attach to the process with bash :
/home/ezio_auditore/IdeaProjects/chatserver/rel/mongooseim/bin/mongooseim attach
Attaching to /tmp//home/ezio_auditore/IdeaProjects/chatserver/rel/mongooseim/erlang.pipe.1 (^D to exit)
^L
I see some strange symbols, I don't have autocompletion anymore, and pressing up key for previous commands is not working ( instead it shows some ^[[A^[[A^[[A )
2) Now If I start the program from bash:
/home/ezio_auditore/IdeaProjects/chatserver/rel/mongooseim/bin/mongooseim start
/home/ezio_auditore/IdeaProjects/chatserver/rel/mongooseim/bin/mongooseim attach
Attaching to /tmp//home/ezio_auditore/IdeaProjects/chatserver/rel/mongooseim/erlang.pipe.1 (^D to exit)
(mongooseim@127.0.0.1)1>
All is fine. I am thinking that python is messing with some stuff, or I am missing some stuff. Please help, thanks