source: trunk/scripts/access/killallplayers @ 6

Revision 6, 1.1 KB checked in by ajaworski, 13 years ago (diff)

Added scripts from tile machine

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3IFS=$'\n'
4for i in `ps -e | grep backgroundview | tr -s " "`
5do
6        echo $i | grep "^ " > /dev/null 2> /dev/null
7        if [ $? == 0 ]
8        then
9                PID=`echo $i | cut -d " " -f 2`
10        else
11                PID=`echo $i | cut -d " " -f 1`
12        fi
13        kill -15 $PID
14done
15
16for i in `ps -e | grep mplayer | tr -s " "`
17do
18        echo $i | grep "^ " > /dev/null 2> /dev/null
19        if [ $? == 0 ]
20        then
21                PID=`echo $i | cut -d " " -f 2`
22        else
23                PID=`echo $i | cut -d " " -f 1`
24        fi
25        kill -15 $PID
26done
27
28for i in `ps -e | grep imageview | tr -s " "`
29do
30        echo $i | grep "^ " > /dev/null 2> /dev/null
31        if [ $? == 0 ]
32        then
33                PID=`echo $i | cut -d " " -f 2`
34        else
35                PID=`echo $i | cut -d " " -f 1`
36        fi
37        kill -15 $PID
38done
39
40
41ssh -t SAGE-stream-0 "/home/pcss/bin/killall"
42ssh -t SAGE-stream-1 "/home/pcss/bin/killall"
43ssh -t SAGE-stream-2 "/home/pcss/bin/killall"
44ssh -t SAGE-stream-3 "/home/pcss/bin/killall"
45ssh -t SAGE-stream-4 "/home/pcss/bin/killall"
Note: See TracBrowser for help on using the repository browser.