Skip to main content
Solved

workspacerunner, spaces and quotes

  • March 14, 2015
  • 2 replies
  • 16 views

nrich_defra
Contributor
Forum|alt.badge.img+5
Hello,

 

 

I'm sure this must have been asked before but I can't find the answer.

 

 

I'm trying to break up a big image processing job by splitting up a directory of jpegs into sets and then passing each set to my worker workbench.

 

 

I'm trying to pass the group of jpegs as an list of files to the jpeg reader in the worker though the workspacerunner, however the list keeps being 'fixed' by the engine as it is passed in:

 

 

i.e my paths look like this (note i have spaces in my path so require quotes)

 

\\\\prodds\\a folder\\a picture1.jpeg

 

\\\\prodds\\a folder\\a picture2.jpeg

 

 

If i run this (succesfully) in the worker directly the reader string looks like this: 

 

"\\\\prodds\\a folder\\a picture1.jpeg","\\\\prodds\\a folder\\a picture2.jpeg"

 

 

so following the guidance in here http://docs.safe.com/fme/html/FME_Server_Documentation/Default.htm#ServerConsole/Arguments_Quotation_Escaping.htm

 

 

I set my master workbench to pass the string as:

 

""""\\\\prodds\\a folder\\a picture1.jpeg"",""\\\\prodds\\a folder\\a picture2.jpeg"""""

 

 

however the worker fails saying it can't find the files, mainly because the paths now read

 

\\\\prodds\\a folder\\a picture1.jpeg,\\prodds\\a folder\\a picture2.jpeg

 

 

i.e. no quotes remain and the leading slash of the second and subsequent files are removed.

 

(it looks to me like the engine tries to 'fix' the multiple paths into a single path for some reason) 

 

 

I've tried using the unix path and single quotes instead of double all to no avail.

 

 

Can anybody help, or suggest another way of splitting up a bunch of jpegs (couldn't get the start from feature, read features trick working either)

Best answer by takashi

Hi, have you tried this?

 

""<path 1>" "<path 2>""
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • Best Answer
  • March 14, 2015
Hi, have you tried this?

 

""<path 1>" "<path 2>""

nrich_defra
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 18, 2015
Takashi,

 

 

Apologies for the delayed response, once again you are my hero!

 

 

I could have sworn i'd tried that, I certainly tried space delimiters, might not have wrapped the entire sting in quotes.

 

 

Anyway, that worked, thank you.