Page 1 of 1
%s_original_name% does not support space
Posted: Wed Nov 13, 2019 9:35 am
by jerrysub
Hi,
I have an issue sometimes the variable "%s_original_name%",it is not getting the full value if there is space char.
It is truncated at the first space present on the filename while used in processor "command executor".
is there a way to fix this?
br,
Jeremy
Re: %s_original_name% does not support space
Posted: Wed Nov 13, 2019 10:17 am
by emcodem
hey Jeremy,
i guess there is an error regarding doublequotes in your commandline. Can you post a copy of your commandline please?
Re: %s_original_name% does not support space
Posted: Thu Nov 14, 2019 5:13 pm
by jerrysub
Hi,
I create a cfg file : "cmd-ftp-for-deletion-%s_original_name%.cfg" where are store ftp commands
then I call it: ftp -s:D:\FFAStrans-Script\cmd-ftp-for-deletion-%s_original_name%.cfg
this is en example of the error :
Job ended with error on Cmd executor mxf@HOSTNAME: Process exited with error code: 2
(Error opening script file D:\FFAStrans-Script\cmd-ftp-for-deletion-498965_PAD_.)
source file cfg was: "cmd-ftp-for-deletion-498965_PAD_ FIRE_SLICE_7MIN.cfg"
br,
Jeremy
Re: %s_original_name% does not support space
Posted: Thu Nov 14, 2019 6:45 pm
by admin
Hi Jeremy,
As emcodem point out, this looks like a "lack-of-double-quotes"-issue. If this is your "Command executor" line:
ftp -s:D:\FFAStrans-Script\cmd-ftp-for-deletion-%s_original_name%.cfg
You need to change it to:
ftp -s:"D:\FFAStrans-Script\cmd-ftp-for-deletion-%s_original_name%.cfg"
Just make a rule for yourself:
"I:\ALWAYS encapsulate\complete file paths\with double-quotes"
PS: %s_original_name%
does support spaces, otherwise most workflows would collapse
-steinar
Re: %s_original_name% does not support space
Posted: Mon Nov 18, 2019 5:08 pm
by jerrysub
Hi Steinar,
all updated. thanks for help.
br,
Jeremy