Score:0

command that cannot work in background (asterisk)

ru flag
Mhd

am trying to run script in background which contain command such like "asterisk -rvd >> xyz.log", when I run it directly it work well but when run it with any background way (service, cron, &, nohub,,) it stop directly with this message: stopped

so what is the prober way to run this command at background ?

tsc_chazz avatar
vn flag
My recollection is that the -r option to asterisk opens a remote console to a running instance. Having a console open when you can't enter commands into it is somewhat pointless, no? Asterisk may see that it's in background and just quit because it has no assurance that you'd be able to close that console otherwise. It also won't open a console if there isn't an asterisk daemon already running - is there one?
Score:0
cn flag

The problem here is likely sudo. Try becoming root first (ie. "su - root" and then run the command. When I run it as root, it works without issue.

Mhd avatar
ru flag
Mhd
no, id didn't also gave me same message
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.