~diwic/+junk/sound-info

« back to all changes in this revision

Viewing changes to sound-info.sh

  • Committer: David Henningsson
  • Date: 2009-01-20 06:29:45 UTC
  • Revision ID: david@davidubuntu-20090120062945-z6kir13dw3l9v0tr
added date to filename

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
do_arts() {
65
65
        CURRENTITEM="arts"
66
66
        do_currentitem_header
67
 
        #TODO: show arts sink configuration
 
67
        if [[ $(pgrep '^(.*/)?artsd$') ]]; then
 
68
                echo "Arts is running." >> $OUTFILE 
 
69
        else
 
70
                echo "Arts is not running." >> $OUTFILE
 
71
        fi
68
72
}
69
73
 
70
74
 
71
75
export LC_ALL=C
72
76
 
73
 
OUTFILE=/tmp/sound-info.txt
 
77
OUTFILE="/tmp/sound-info-"$(date +%F_%H-%M-%S)".txt"
74
78
echo "Sound configuration information script" > $OUTFILE
75
 
 
 
79
echo "Generated at "$(date +%F_%T) >> $OUTFILE
76
80
do_gstreamer
77
81
do_pulseaudio
78
82
do_arts