44 reputation
3
bio website
location
age
visits member for 2 years
seen Jan 5 at 8:25

Dec
18
awarded  Student
Dec
18
asked First line of awk output isn't what I expect
Dec
12
comment How to scp folders with nasty names using a shell function
No, from console and no problem. I modify your script and copy successfull too: $ cat put.sh #!/bin/sh function putOnSG3() { uuid=uuidgen` if [[ -d $1 ]]; then scp -i /s.gvozdetskiy/.ssh/id_rsa -rv "$1" s.gvozdetskiy@foo-server:/home/s.gvozdetskiy/"$1.$uuid" &2>1; else echo $1 " is not a directory. Not copying."; fi } putOnSG3 test[` I used ssh-keys for authorize on foo-server.
Dec
12
comment How to scp folders with nasty names using a shell function
So what's problem? Copy successful: scp -rv test\[/ s.gvozdetskiy@foo-server:/home/s.gvozdetskiy s.gvozdetskiy@172.16.1.252's password: [s.gvozdetskiy@foo-server ~]$ ll ... drwxr-xr-x 2 s.gvozdetskiy s.gvozdetskiy 4096 Dec 12 12:41 test[ ... Or youre problem in function?
Dec
12
answered How to scp folders with nasty names using a shell function
Dec
7
answered How to diff two folders by inodes
Dec
6
awarded  Teacher
Dec
6
awarded  Editor
Dec
6
revised How to install FTP server on Red Hat VM?
edited body
Dec
6
answered How to install FTP server on Red Hat VM?