Tom Krier Posted July 24, 2019 Posted July 24, 2019 I have a need to download files from a Linux box to a Windows server. Due to the dynamic name of the files I was hoping to just execute a command like this: ftmscmd.exe /R /F/WM=CR /TC=3/node:[node name]"D:[windows folder]*" "/[Linux folder]/*". This command fails due to the filenames containing colons (:) which is a restricted character on Windows but not Linux (ex: Filename_2019_07_24_12:10:23). I tried looking into doing a remote command first to change the colons to some other character using the following command: find -name '*:*' -execdir bash -c 'mv -- "$1" "${1//:/_}"' bash {} ; but I can't get it to work as a remote command. Likely due to single/double quote issues. If anybody has a good idea of how to retrieve these files to my Windows server please let me know. thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now