User Profile

Advertisement

  • Add Friend
  • Add Note
  • Track User
  • Send Message
  • Send V-Gift
Userpic

Мысли перед сном

не только кошмарные...

Created on 2005-05-19 20:35:13 (#7167691), last updated 2009-08-10

502 comments received, 2,741 comments posted

Basic Info
Name:dioremal
Birthdate:1983-02-02
Location:urai, Russian Federation

Contact:

arthur@pip.ru
Bio
#!/usr/local/bin/bash
MHOST=127.0.0.1 # mpd host
MPORT=5555 # mpd telnet port
IP="$3";

test -z "$IP" && exit 1
for bundle in `echo "bundle" | /usr/bin/nc $MHOST $MPORT | grep Opened | awk '{print $1}'`;
do
if echo -e "bundle $bundle\\nshow iface" | /usr/bin/nc $MHOST $MPORT | grep "${IP}$" >/dev/null 2>&1
then
echo -e "bundle $bundle\\nclose phys" | /usr/bin/nc $MHOST $MPORT >/dev/null 2>&1
fi
done;
exit 0;
Connect
Friends [View Entries]
Communities [View Entries]

Watching (2):

Member of (1):

Feeds [View Entries]

Watching (0)

Advertisement

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…