Re: [Gambas-user] Shell command formating

2017-08-07 Thread Shane

thanks tony this works just needs the & in front of the 1


On 08/08/17 00:30, Tony Morehen wrote:

Try changing command to:

command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 
2>1"



On 2017-08-06 09:52 PM, Shane wrote:

command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path




-- 


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shell command formating

2017-08-07 Thread Shane

That worked great T Lee thanks



On 08/08/17 00:00, T Lee Davidson wrote:

On 08/06/2017 09:52 PM, Shane wrote:

So again on the shell command I have this code

Dim result As String
Dim command As String

path = File.SetExt(file_name, "ihx")

  command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path

Shell command To result

FMain.TextArea1.Text = result

but the output is going to stdout and not the result String i know it 
to do with the command string


but now do you set it up ?

Thanks Shane..



Perhaps the output is actually going to stderr for some silly reason. 
Maybe try redirecting stderr to stdout:


command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 
2>&1"






--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shell command formating

2017-08-07 Thread Tony Morehen

Try changing command to:

command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 2>1"


On 2017-08-06 09:52 PM, Shane wrote:

command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shell command formating

2017-08-07 Thread T Lee Davidson

On 08/06/2017 09:52 PM, Shane wrote:

So again on the shell command I have this code

Dim result As String
Dim command As String

path = File.SetExt(file_name, "ihx")

  command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path

Shell command To result

FMain.TextArea1.Text = result

but the output is going to stdout and not the result String i know it to do 
with the command string

but now do you set it up ?

Thanks Shane..



Perhaps the output is actually going to stderr for some silly reason. Maybe try 
redirecting stderr to stdout:

command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 2>&1"


--
Lee

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Shell command formating

2017-08-06 Thread Shane

So again on the shell command I have this code

Dim result As String
Dim command As String

path = File.SetExt(file_name, "ihx")

 command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path

Shell command To result

FMain.TextArea1.Text = result

but the output is going to stdout and not the result String i know it to 
do with the command string


but now do you set it up ?

Thanks Shane..


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user