Talk:Voicenote

From Openmoko

Revision as of 14:46, 24 February 2009 by Kimaidou (Talk | contribs)

Jump to: navigation, search

Please add any idea / comment / code sample here

I (kimaidou) copy/paste the comments I had on the community mailing list

enable job control

You should use "kill %1" instead, this will only kill the instance you just started (and TERM is the default). For that, you need to enable job control (set -m) + remove the &

Result :

#!/bin/bash
# Exit on error
# Enable job control
set -em

........

# Kill arecord
kill %1


other ?

Personal tools

Please add any idea / comment / code sample here

I (kimaidou) copy/paste the comments I had on the community mailing list

enable job control

You should use "kill %1" instead, this will only kill the instance you just started (and TERM is the default). For that, you need to enable job control (set -m) + remove the &

Result :

#!/bin/bash
# Exit on error
# Enable job control
set -em

........

# Kill arecord
kill %1


other ?