<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 19/04/18 14:12, Shannon Kuchler wrote:<br>
    <blockquote type="cite"
      cite="mid:zarafa.5ad8ce0f.6a17.7ca896f8737c7408@gateway.inflecto.org">
      <meta name="Generator" content="Zarafa WebApp v7.2.0-48204">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>Problem with Shell Gambas 3.10.0</title>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-bogus="true" id="_mce_caret"><span
            data-mce-style="font-size: 10pt; font-family:
            tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
            font-family: tahoma,arial,helvetica,sans-serif;">This is
            the Shell command I'm trying to run<br>
          </span></span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-bogus="true" id="_mce_caret"><span
            data-mce-style="font-size: 10pt; font-family:
            tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
            font-family: tahoma,arial,helvetica,sans-serif;">p1 = Shell
            "steamcmd +login" & " " & UserName & " " &
            PassWD & " " & "+force_install_dir" & " " &
            CacheSaveLocation & "/" & dlDat[1] & " " &
            "+app_update 251570 -beta" & " " & dlDat[1] & "
            " & "+quit" Wait For Input As "Process"</span></span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-bogus="true" id="_mce_caret"><span
            data-mce-style="font-size: 10pt; font-family:
            tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
            font-family: tahoma,arial,helvetica,sans-serif;">in console
            it should look like this </span></span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-bogus="true" id="_mce_caret"><span
            data-mce-style="font-size: 10pt; font-family:
            tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
            font-family: tahoma,arial,helvetica,sans-serif;">steamcmd
            +login username password +force_install_dir dirname/dirname
            +app_update 251570 -beta dirname  +quit<br>
          </span></span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-style="font-size: 10pt; font-family:
          tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
          font-family: tahoma,arial,helvetica,sans-serif;">The problem
          is on most systems the shell command works just fine but on
          one system with a fresh install of  arch linux i get this
          error<br data-mce-bogus="1">
        </span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-style="font-size: 10pt; font-family:
          tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
          font-family: tahoma,arial,helvetica,sans-serif;">/bin/sh:
          +force_install_dir: command not found<br>
          it like it's skipping everything up to +force_install_dir in
          the command does anyone know why?<br data-mce-bogus="1">
        </span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-style="font-size: 10pt; font-family:
          tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
          font-family: tahoma,arial,helvetica,sans-serif;">I can get it
          to work like this but  CacheDir is a directory with spaces
          same thing for dlDat1 it has spaces as well so that's not
          working either<br data-mce-bogus="1">
        </span></p>
      <p hasownproperty="function hasOwnProperty() { [native code]
        }" valueof="function valueOf() { [native code]
        }" isprototypeof="function isPrototypeOf() { [native code]
        }" propertyisenumerable="function propertyIsEnumerable() {
        [native code]
        }" tolocalestring="function toLocaleString() { [native code]
        }" tostring="function toString() { [native code]
        }" constructor="function Object() { [native code]
        }" style="padding: 0; margin: 0;" data-mce-style="padding: 0;
        margin: 0;"><span data-mce-style="font-size: 10pt; font-family:
          tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt;
          font-family: tahoma,arial,helvetica,sans-serif;">p1 = Exec
          ["steamcmd", "+login", UserName, PassWD, "+force_install_dir",
          CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"]
          For Input As "Process"</span></p>
      <br>
    </blockquote>
    Shannon,<br>
    <br>
    Try enclosing the paths in double-quotes. For example, instead of<br>
    <br>
    Â  "+force_install_dir" & " " & CacheSaveLocation & "/"
    & dlDat[1] &<br>
    <br>
    Try with<br>
    <br>
    Â  [...] & "+force_install_dir" & " """ &
    CacheSaveLocation & "/" & dlDat[1] & """ " & [...]<br>
    <br>
    The twin double-quotes are there to be substituted by Gambas by a
    single double-quote when passed to the shell.<br>
    <br>
    Likewise with the string array, instead of<br>
    <br>
    Â  "+force_install_dir", CacheDir<br>
    <br>
    Try with<br>
    <br>
    Â  "+force_install_dir", """" & CacheDir & """"<br>
    <br>
    Again, the shell sees a double-quote, then the contents of CacheDir,
    then another double-quote.<br>
    <br>
    Hope it helps,<br>
    zxMarce.<br>
    <br>
  </body>
</html>