This file is indexed.

/usr/share/amsn/plugins/music/infomoc is in amsn-data 0.98.9-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Shell-script to get informations about the current song playing in moc
#
# Original by Pedro J. Ruiz (holzplatten@es.gnu.org)
# Also modified by Pablo Castellano (pablog.ubuntu@gmail.com)

STATUS="`ps ax | grep mocp`"
if [[ -z $STATUS ]]; then
    echo 0
    exit 0
fi

STATUS="`mocp -i | grep State | awk '{ print $2}'`"
if [[ $STATUS != "PLAY" ]]; then
    echo 0
    exit 0
fi

SONG="`mocp -i | grep SongTitle | awk '{ $1=null; print $0 }' `"
ARTIST="`mocp -i | grep Artist | awk '{ $1=null; print $0 }' `"
PATH="`mocp -i | grep File | awk '{ $1=null; print $0 }' `"

echo 1
echo $ARTIST
echo $SONG
echo $PATH

exit 0