Talk:Voicenote
From Openmoko
(Difference between revisions)
m (→enable job control) |
m |
||
Line 2: | Line 2: | ||
I (kimaidou) copy/paste the comments I had on the community mailing list | I (kimaidou) copy/paste the comments I had on the community mailing list | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== enable job control == | == enable job control == | ||
Line 23: | Line 15: | ||
# Enable job control | # Enable job control | ||
set -em | set -em | ||
− | + | ||
− | + | ........ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
# Kill arecord | # Kill arecord | ||
kill %1 | kill %1 | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== other ? == | == other ? == |
Revision as of 16:46, 24 February 2009
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