Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -2,8 +2,8 @@ | ... | @@ -2,8 +2,8 @@ |
2 | 2 | ||
3 | NAME=$(date +%y%m%d) | 3 | NAME=$(date +%y%m%d) |
4 | 4 | ||
5 | -HOST='User remote server ip' | 5 | +HOST='celinux2.khu.ac.kr' |
6 | -USER='User id' | 6 | +USER='usp33' |
7 | FILE=$NAME'.tar' | 7 | FILE=$NAME'.tar' |
8 | 8 | ||
9 | MakeTarFile() { | 9 | MakeTarFile() { |
... | @@ -11,7 +11,7 @@ MakeTarFile() { | ... | @@ -11,7 +11,7 @@ MakeTarFile() { |
11 | } | 11 | } |
12 | 12 | ||
13 | ConnectSFTP() { | 13 | ConnectSFTP() { |
14 | - sftp $USER@$HOST << END_SCRIPT | 14 | + sftp $USER@$HOST 2> /dev/null << END_SCRIPT |
15 | put $FILE | 15 | put $FILE |
16 | quit | 16 | quit |
17 | END_SCRIPT | 17 | END_SCRIPT |
... | @@ -19,8 +19,8 @@ END_SCRIPT | ... | @@ -19,8 +19,8 @@ END_SCRIPT |
19 | 19 | ||
20 | for i in {0..75..3} | 20 | for i in {0..75..3} |
21 | do | 21 | do |
22 | - MakeTarFile | 22 | + MakeTarFile > /dev/null |
23 | - ConnectSFTP | 23 | + ConnectSFTP > /dev/null |
24 | rm $FILE | 24 | rm $FILE |
25 | 25 | ||
26 | sleep 3m | 26 | sleep 3m | ... | ... |
-
Please register or login to post a comment