Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

How to handle Windows reserved characters in Linux files (colon)


Tom Krier

Recommended Posts

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...