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
%s_original_name% does not support space
Re: %s_original_name% does not support space
hey Jeremy,
i guess there is an error regarding doublequotes in your commandline. Can you post a copy of your commandline please?
i guess there is an error regarding doublequotes in your commandline. Can you post a copy of your commandline please?
emcodem, wrapping since 2009 you got the rhyme?
Re: %s_original_name% does not support space
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
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
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
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
Hi Steinar,
all updated. thanks for help.
br,
Jeremy
all updated. thanks for help.
br,
Jeremy