#!/bin/bash if [ "$1" == "" ]; then ssh $1@$0 else ssh $0 fi #### $ ~/ssh/myhost.org radmat #### #!/usr/bin/perl if (!defined $ARGV[0] || $ARGV[0] eq '') { exec('ssh',$0) } else { exec('ssh',"$ARGV[0]\@$0") }