diff options
Diffstat (limited to '.ftjerm/1')
-rw-r--r-- | .ftjerm/1/commands/connect | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/general | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/get | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/getp | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/saguaro | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/send | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/sendp | 0 | ||||
-rw-r--r-- | .ftjerm/1/commands/withg | 0 | ||||
-rwxr-xr-x | .ftjerm/1/ssh.sh | 94 |
9 files changed, 0 insertions, 94 deletions
diff --git a/.ftjerm/1/commands/connect b/.ftjerm/1/commands/connect deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/connect +++ /dev/null diff --git a/.ftjerm/1/commands/general b/.ftjerm/1/commands/general deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/general +++ /dev/null diff --git a/.ftjerm/1/commands/get b/.ftjerm/1/commands/get deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/get +++ /dev/null diff --git a/.ftjerm/1/commands/getp b/.ftjerm/1/commands/getp deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/getp +++ /dev/null diff --git a/.ftjerm/1/commands/saguaro b/.ftjerm/1/commands/saguaro deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/saguaro +++ /dev/null diff --git a/.ftjerm/1/commands/send b/.ftjerm/1/commands/send deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/send +++ /dev/null diff --git a/.ftjerm/1/commands/sendp b/.ftjerm/1/commands/sendp deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/sendp +++ /dev/null diff --git a/.ftjerm/1/commands/withg b/.ftjerm/1/commands/withg deleted file mode 100644 index e69de29..0000000 --- a/.ftjerm/1/commands/withg +++ /dev/null diff --git a/.ftjerm/1/ssh.sh b/.ftjerm/1/ssh.sh deleted file mode 100755 index 002560c..0000000 --- a/.ftjerm/1/ssh.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/bin/bash -input="" -filename="" -temp="" -action="" -destination="" -sleep .125s - -cd /home/shmibs/.ftjerm/1/commands - -while IFS="" read -r -e -d $'\n' -p "ssh: " -a input; do - history -s "$input" - - IFS=" " - input=($input) - - if [ -n "$input" ]; then - - if [ "${input[0]}" == "send" ]; then - destination="" - if [ "${input[1]}" == "general" ]; then - destination="gamarti6@general.asu.edu:/afs/asu.edu/users/g/a/m/gamarti6/" - fi - - if [ "${input[1]}" == "withg" ]; then - destination="shmibs@withg.org:/home/shmibs/" - fi - - if [ "${input[1]}" == "saguaro" ]; then - destination="gamarti6@saguaro.fulton.asu.edu:/home/gamarti6/" - fi - - if [ -n "$destination" ]; then - cd ~ - read -r -e -d $'\n' -p "~/" -a filename - temp=`basename $filename` - scp -r '/home/shmibs/$filename' '$destination$temp' - cd /home/shmibs/.ftjerm/1/commands - - fi - fi - - if [ "$input" == "sendp" ]; then - cd ~ - read -r -e -d $'\n' -p "~/" -a filename - cd /home/shmibs/.ftjerm/1/commands - temp=`basename $filename` - scp -r /home/shmibs/$filename shmibs@withg.org:/home/shmibs/www/$temp - echo "http://withg.org/shmibs/$temp" | xclip -selection clipboard - fi - - if [ "$input" == "get" ]; then - cd ~ - read -r -e -d $'\n' -p "~/" -a filename - cd /home/shmibs/.ftjerm/1/commands - temp=`basename $filename` - scp -r shmibs@withg.org:~/$filename ~/Desktop/$temp - fi - - if [ "$input" == "getp" ]; then - cd ~ - read -r -e -d $'\n' -p "~/www/" -a filename - cd /home/shmibs/.ftjerm/1/commands - temp=`basename $filename` - scp -r shmibs@withg.org:/home/shimbs/www/$filename ~/Desktop/$temp - fi - - if [ "${input[0]}" == "connect" ]; then - if [ "${input[2]}" != "-X" ]; then - unset ${input[2]} - fi - - destination="" - - if [ "${input[1]}" == "general" ]; then - destination=gamarti6@general.asu.edu - fi - - if [ "${input[1]}" == "withg" ]; then - destination=shmibs@withg.org - fi - - if [ "${input[1]}" == "saguaro" ]; then - destination=gamarti6@saguaro.fulton.asu.edu - fi - - if [ "$destination" != "" ]; then - ssh ${input[2]} $destination - fi - fi - - fi - -done |