<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with white spaces in command input in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514345#M1171</link>
    <description>&lt;P&gt;putting ` characters around filepath work well in cli, but how can I use that in Playbook tasks? thanks for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 21:55:59 GMT</pubDate>
    <dc:creator>gkindley</dc:creator>
    <dc:date>2022-09-08T21:55:59Z</dc:date>
    <item>
      <title>Problem with white spaces in command input</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514332#M1169</link>
      <description>&lt;P&gt;When I try to put a filepath that has white spaces as an input in the command "cs-falcon-rtr-remove-file", I receive the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CrowdStrike Falcon The command was failed with the errors: {'d5716ded5d214d61a23884dd9ef64078': 'Max args is 1. 5 were provided'}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The complete command used and retrieved from the warrom looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;!cs-falcon-rtr-remove-file host_ids="&amp;lt;numeric host id&amp;gt;" file_path="\\Path\\To\\The\\File\\A\\Directory with whitespaces\\Directory\\Directory2with whitespaces \\File.exe" os="Windows"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I replace the original path with some placeholder). I notice that taking into consideration the whitespaces, the filepath is split into 5 pieces, getting the mentioned error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I escape the whitespaces? I tried with \ before the spaces, but it's not considered when the command is running, and \s is escaped as \\s, making a bad filepath.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The command comes from Crowdstrike Falcon Content Pack, and is implemented in the "&lt;A&gt;CrowdStrike Falcon - True Positive Incident Handling&lt;/A&gt;" Playbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really appreciate any help, regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 20:51:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514332#M1169</guid>
      <dc:creator>gkindley</dc:creator>
      <dc:date>2022-09-08T20:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with white spaces in command input</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514340#M1170</link>
      <description>&lt;P&gt;Can you try putting back ticks around the file path like this:&amp;nbsp;&lt;SPAN&gt;file_path=`"\\Path\\To\\The\\File\\A\\Directory with whitespaces\\Directory\\Directory2with whitespaces \\File.exe"`&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 21:21:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514340#M1170</guid>
      <dc:creator>cstone</dc:creator>
      <dc:date>2022-09-08T21:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with white spaces in command input</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514345#M1171</link>
      <description>&lt;P&gt;putting ` characters around filepath work well in cli, but how can I use that in Playbook tasks? thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 21:55:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/problem-with-white-spaces-in-command-input/m-p/514345#M1171</guid>
      <dc:creator>gkindley</dc:creator>
      <dc:date>2022-09-08T21:55:59Z</dc:date>
    </item>
  </channel>
</rss>

