#!/bin/sh
f=`ls ifhp*tgz |tail -1`;

# RPM
ssh -l root h101 "set f=`ls /usr/src/redhat/SOURCES/ifhp* /usr/src/redhat/SRPMS/ifhp* /usr/src/redhat/RPMS/* /ifhp* 2>/dev/null`; echo REMOVE $f; rm -f $f;"
scp $f root@h101:/usr/src/redhat/SOURCES
ssh -l root h101 'sh UNPACKifhp'

# FreeBSD
#ssh -l root h21 "rm -f /usr/ports/distfiles/ifhp*"
#scp $f root@h21:/usr/ports/distfiles
#ssh -l root h21 'sh UNPACKifhp'
