44 reputation
3
bio website
location
age
visits member for 1 year, 10 months
seen Jan 5 at 8:25

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?