WebNov 14, 2015 · could not copy file name with space in scp ssh Ask Question Asked 7 years, 10 months ago Modified 7 years, 4 months ago Viewed 758 times 0 I could not copy the file with spaces in file name using ssh2_scp_recv () function.This is the filename testfile-03_23_15 11 02 AM.csv which actually stored in server. my code is here WebMay 15, 2013 · Here’s a stupid unix trick: scp is an awesome tool for moving files around between unix-y machines (for instance, my Mac laptop and my Linux HTPC). Often enough, though, I need to copy a file with a space in the name, and this stumped me for a while. Here’s the answer. You need to quote it twice:
Scp a file with spaces or parentheses in the name
WebFor a filename with a space inside, In Nautilus, the space character is shown as a space. In Bash terminal, I either use \ to represent a space, or enclose the filename within a pair of double quotes. in some applications's files (Nautilus, not sure if OS will also do so), the filename is written with the space replaced with %20. WebJun 20, 2024 · I was trying to copy a file from a remote machine to my machine using scp. The problem I was facing arose when the path to the remote machine contained some spaces like: phf850s
Use scp to transfer a file from local directory X to remote directory …
WebJul 15, 2015 · 11. This is what I tried. inputFile=$ (zenity --file-selection --title "Test" --text "Please select the file for analysis." sed -e "s/ /\\\ /g") I did the sed operation to replace white spaces with a \ and a whitespace to make the copying command to work. Then from the Zenity file selection GUI I have chosen a file so that the value inside ... WebJan 12, 2012 · how scp a file to server with space in the directory name Hello forum, I’m trying to get someone else’s log rotation & sync script working. The ksh script is sending daily compressed log files to a Windows RSA envision server. The name of the directory is “CA SITEMINDER_”. WebFeb 23, 2024 · Spaces are allowed in long filenames or paths, which can be up to 255 characters with NTFS. All operations at the command prompt involving long names with spaces, however, must be treated differently. Normally, it is an MS-DOS convention to use a space after a word to specify a parameter. phf8 cancer