[Gambas-user] Problem with Shell Gambas 3.10.0

Shannon Kuchler shannon at inflecto.org
Thu Apr 19 20:54:14 CEST 2018


Thanks Jussi I'll do that. I didn't know about the escape with \ that might be what I need

On April 19, 2018 1:34:30 PM CDT, Jussi Lahtinen <jussi.lahtinen at gmail.com> wrote:
>I suggest you run the code like this and look what the command actually
>look like when it fails:
>
>
>Dim sCommand As String = "steamcmd +login" & " " & UserName & " " &
>PassWD
>& " " & "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1]
>& "
>" & "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit"
>
>
>Debug sCommand
>
>p1 = Shell sCommand Wait For Input As "Process"
>
>
>
>Also you can tidy up the command:
>
>
>"steamcmd +login " & UserName & " " & PassWD & " +force_install_dir " &
>CacheSaveLocation & "/" & dlDat[1] & " +app_update 251570 -beta " &
>dlDat[1] & " +quit"
>
>
>If you need to add quote marks for the command you can escape with \,
>and
>so \" will print quote mark.
>
>
>
>Jussi
>
>
>
>
>On Thu, Apr 19, 2018 at 8:12 PM, Shannon Kuchler <shannon at inflecto.org>
>wrote:
>
>> This is the Shell command I'm trying to run
>>
>>
>> p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " &
>> "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " "
>&
>> "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For
>Input
>> As "Process"
>>
>>
>> in console it should look like this
>>
>> steamcmd +login username password +force_install_dir dirname/dirname
>> +app_update 251570 -beta dirname  +quit
>>
>>
>> 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
>>
>> /bin/sh: +force_install_dir: command not found
>>
>>
>> it like it's skipping everything up to +force_install_dir in the
>command
>> does anyone know why?
>>
>>
>> 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
>>
>> p1 = Exec ["steamcmd", "+login", UserName, PassWD,
>"+force_install_dir",
>> CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"] For
>Input As
>> "Process"
>>
>>
>>
>>
>> --------------------------------------------------
>>
>> This is the Gambas Mailing List:
>> https://lists.gambas-basic.org/listinfo/user
>>
>> Search the list:
>> https://lists.gambas-basic.org/cgi-bin/search.cgi
>>
>> Hosted by https://www.hostsharing.net
>>
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180419/3c549b81/attachment-0001.html>


More information about the User mailing list