reorganise more old stuff
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
bd2765c540
commit
c23bfc5a82
54 changed files with 3 additions and 562 deletions
33
sshto
33
sshto
|
|
@ -1,33 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Standard:
|
||||
thehost="creeper"
|
||||
theuser="root"
|
||||
|
||||
SSH="ssh"
|
||||
OPTS=""
|
||||
|
||||
# HOST
|
||||
read -p "ssh host [$thehost] :" temphost
|
||||
if [ -z "$temphost" ]; then
|
||||
OPTS="$OPTS $thehost"
|
||||
else
|
||||
OPTS="$OPTS $temphost"
|
||||
fi
|
||||
|
||||
|
||||
# USER
|
||||
read -p "user [$theuser] :" tempuser
|
||||
if [ -z "$tempuser" ]; then
|
||||
OPTS="$OPTS -l$theuser"
|
||||
else
|
||||
OPTS="$OPTS -l$tempuser"
|
||||
fi
|
||||
|
||||
# COMMAND
|
||||
read -p "command: " thecmd
|
||||
if [ -n "$thecmd" ]; then
|
||||
OPTS="$OPTS \"$thecmd\""
|
||||
fi
|
||||
|
||||
$SSH $OPTS
|
||||
Loading…
Add table
Add a link
Reference in a new issue