Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get an fm radio stick working on my streaming box. It uses the command 'radio' for tuning, but the command seems to be running in order for the radio to work (i.e. I can't just tune it then forget about it).

Unfortunately, if I try to use a wrapper that runs the command in the backgroup, it doesn't seem to work, as it is ncurses based, and doesn't seem to like being run in batch mode.

Like xvfb can be used to 'fake' an X session, can I do the same for ncurses?

share|improve this question

To add to Oli's answer

screen -d -m -S nameOfScreen /path/to/exe  #this is for scripting use

This is all in man screen and it's not too hard to figure out

You should try to find a screen tutorial to give you a once over though.
This one doesn't seem too bad.

share|improve this answer

You could spawn a screen (sudo apt-get install screen) session that you can then detach from.

No idea how you'd script the detachment but it should work for keeping a ncurses application running in the background.

share|improve this answer

Direct the output to /dev/null ; this will probably keep it "happy" about not having a terminal.

radioapp -option /etc 2>&1 > /dev/null

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.