#!/bin/bash # start notification daemon # connect to server and open port # kill notification daemon PATH=$HOME/bin/:$PATH notify_irssi_server.pl &> /dev/null & pid=$! ssh -R 7090:localhost:7090 sleepmap kill $pid