%s_original_name% does not support space

Here you can submit bugreports
Post Reply
jerrysub
Posts: 38
Joined: Mon Jun 18, 2018 9:10 am

%s_original_name% does not support space

Post 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
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: %s_original_name% does not support space

Post by emcodem »

hey Jeremy,
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?
jerrysub
Posts: 38
Joined: Mon Jun 18, 2018 9:10 am

Re: %s_original_name% does not support space

Post 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
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: %s_original_name% does not support space

Post 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
jerrysub
Posts: 38
Joined: Mon Jun 18, 2018 9:10 am

Re: %s_original_name% does not support space

Post by jerrysub »

Hi Steinar,
all updated. thanks for help.
br,
Jeremy
Post Reply