I am answering myself here : I found the solution :you have to add a "&" at the end of the arecord line So the file content is now :
#!/bin/bash zenity --question --title="Voice-note" --text="Click Validate to START recording"; gostart=$? if [ "$gostart" = 1 ] then echo "Operation canceled" exit else echo "Recording..." fi arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav & alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore & zenity --info --title="Voice-note" --text="Click Validate to STOP recording"; gostop=$? killall -TERM arecord alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore zenity --info --title="Voice note" --text="Your voice-note has been recorded"; goread=$? #END OF FILE CONCLUSION It works well !! For those who want to try, just create a executable text file called "voicenote.sh" for example in your personnal folder and add the lines above. To make it executable, please do : chmod +x ~/voicenote.sh Thanks all for your help ! Kimaidou
_______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community