Blob


1 #!/bin/sh
3 if [ $# -eq 0 ]
4 then
5 echo 'usage: B cmd...' 2>&1
6 exit 1
7 fi
9 if [ "x$DISPLAY" = "x" ]
10 then
11 sam="/tmp/.sam.$USER"
12 else
13 sam="/tmp/.sam.$USER.$DISPLAY"
14 fi
16 if [ ! -p $sam ]
17 then
18 echo could not find sam 2>&1
19 exit 2
20 else
21 pwd=`pwd`
22 for i
23 do
24 case $i in
25 /*)
26 echo "B $i" >>$sam
27 ;;
28 *)
29 echo "B $pwd/$i" >>$sam
30 ;;
31 esac
32 done
33 fi