July 20, 20205 yr I'm following one of the great SpaceInvaders videos to set up my Unraid server to retrieve a keyfile off of a local ftp server. I'm using an old TP-Link C50 V2 that has a USB 2.0 port as the server. The problem is when you set up any file, folder, or even the whole volume to be accessed, the router adds the drive name in parenthesis. For example, Ftp://192.168.2.6:2219/volume1(sda1)/keyfile From googleing, there is no way to stop the router from placing the (sda1) however if you where using smb on windows you could just ignore it and the path works. When using ftp,if I ignore it then it can't be found. When I use the following code, I get the respective reply.... wget --user=myusername --password=mypassword ftp://192.168.2.6:2219/volume1(sda1)/keyfile -0 /root/keyfile -bash: syntax error near unexpected token `(' Any ideas what to try? I'm horrible with terminal and coding.
July 20, 20205 yr Hey, you could try something like (adding quotes): wget --user=myusername --password=mypassword "ftp://192.168.2.6:2219/volume1(sda1)/keyfile" -0 /root/keyfile
July 20, 20205 yr Author 47 minutes ago, heyper said: Hey, you could try something like (adding quotes): wget --user=myusername --password=mypassword "ftp://192.168.2.6:2219/volume1(sda1)/keyfile" -0 /root/keyfile That was simple. I used ' as I was already using for the password. Assume ' and " are the same for this purpose though?
July 20, 20205 yr Good question I looked it up, here is the explanation for the bash-shell: Single Quotes http://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html Double Quotes http://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html Also helpful: https://stackoverflow.com/questions/6697753/difference-between-single-and-double-quotes-in-bash Edited July 20, 20205 yr by heyper stackoverflow link
Archived
This topic is now archived and is closed to further replies.