blob: 0a4bdd0c6164763ebdd654744533aa765d754c95 (
plain)
- #!/bin/sh
- me=$(whoami)
- user=${1:-$me}
- host=${2:-localhost}
- #pkill -KILL -f offlineimap || nice x-terminal-emulator -e "offlineimap || echo 'Application died - hit return to quit!'; read"
- #pkill -KILL -f offlineimap || nice x-terminal-emulator -e \( offlineimap \|\| read \)
- if [ "$user" = "$me" ] && [ "$host" = "localhost" ]; then
- command="bash -s"
- else
- command="ssh -C -X $user@$host bash -s"
- fi
- echo "pkill -u $user offlineimap || offlineimap" | $command
- exit 0
|