Shell Script Beep Media Player Display Currently Playing MP3 File

by admin on July 24, 2009 · 0 comments

#!/bin/bash
# Shell Script To Display MP3 file name currently playing using
# beep media player
# -------------------------------------------------------------------------
# Copyright (c) 2008 nixCraft project <http://www.cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# ----------------------------------------------------------------------
lsof -F -p $(ps aux | grep "[b]eep-media-player" | awk '{ print $2}') | grep -i  mp3

Previous post:

Next post: