Re: Problem running shell command in spawn()

2021-08-27 Thread Mark Reynolds
On 8/27/21 11:32 AM, Martin Pitt wrote: Hello Mark, I'm afraid I have no further idea about the original bug -- at this point I'd need to try this code and reproduce. But.. Mark Reynolds [2021-08-26 8:54 -0400]:    let cmd = [    

Re: Problem running shell command in spawn()

2021-08-27 Thread Martin Pitt
Hello Mark, I'm afraid I have no further idea about the original bug -- at this point I'd need to try this code and reproduce. But.. Mark Reynolds [2021-08-26 8:54 -0400]: >    let cmd = [ >     "/bin/sh", >

Re: Problem running shell command in spawn()

2021-08-26 Thread Mark Reynolds
On 8/26/21 6:43 AM, Martin Pitt wrote: Hello Mark, Mark Reynolds [2021-08-25 12:38 -0400]: This code used to work for a long time, but now it stopped working as expected:     let cmd = [     "/bin/sh",     "-c", I can't possibly believe that ' vs. " has any actual influence about

Re: Problem running shell command in spawn(), fixed...

2021-08-26 Thread Mark Reynolds
On 8/26/21 5:15 AM, Stef Walter wrote: On Wed, Aug 25, 2021 at 8:51 PM Mark Reynolds > wrote: Well I tried a lot of different things, but for some reason switching the first two items to use single quotes instead of double quotes got it working:

Re: Problem running shell command in spawn()

2021-08-26 Thread Martin Pitt
Hello Mark, Mark Reynolds [2021-08-25 12:38 -0400]: > This code used to work for a long time, but now it stopped working as > expected: > >     let cmd = [ >     "/bin/sh", >     "-c", I can't possibly believe that ' vs. " has any actual influence about it -- this makes absolutely no

Re: Problem running shell command in spawn(), fixed...

2021-08-26 Thread Stef Walter
On Wed, Aug 25, 2021 at 8:51 PM Mark Reynolds wrote: > Well I tried a lot of different things, but for some reason switching > the first two items to use single quotes instead of double quotes got it > working: > > let cmd = [ > -

Re: Problem running shell command in spawn(), fixed...

2021-08-25 Thread Mark Reynolds
Well I tried a lot of different things, but for some reason switching the first two items to use single quotes instead of double quotes got it working: let cmd = [ -    "/bin/sh", - 

Problem running shell command in spawn()

2021-08-25 Thread Mark Reynolds
This code used to work for a long time, but now it stopped working as expected:     let cmd = [     "/bin/sh",     "-c",     '/usr/bin/echo TEST >> ' + setup_file     ];     cockpit.spawn (cmd, { superuser: true, err: "message" }) Now the output file (setup_file) is empty. When