Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.