1. Eu4 - Using wget with Wine or Windows

I used the program "wget.ex" and "google_tts.ex" in Linux and they worked perfectly.

But they are not running in Wine. If I type:

"eui wget http://ww.google.com" and <Enter>

Them the prompt returns and show nothing.

If I type of wrong way, for example:

"eui wget http://ww.google.zzzz"

The prompt returns and shows: "could not download http://google.zzzz" I think that Wine has no connection problems, I run with Wine, programs that use FTP without problems

I do not have Windows installed to test with wget. Does anyone know if wget is working on Windows?

Does anyone have any idea how to make wget work in wine?

new topic     » topic index » view message » categorize

2. Re: Eu4 - Using wget with wine

Ok. Maybe there is not much interest to the programming for the net.

But, if anyone wants to know, see below.

I ran a binary on the Internet, using the function HTTP_GET in a progam on my PC. Every time that the binary is executed, it sends an email and also sends a return to function

When I use Linux, the function htto_get, returns 100% of the time

When using the Windows Seven HTTP_GET the function returns a few times (less than 5%)

When I use Wine, htto_get function, NEVER returns.

Thus, it appears that the function could not run the binary on the Internet, but this is not true, because the mail was sent every time the function was executed HTTP_GET on my PC

But the return of a function is important to know if there was success. As I said above, when I use LInux, there is return of 100% of the time, so here is a suggestion for the development team, improving the return of this function to the Windows platform

new topic     » goto parent     » topic index » view message » categorize

3. Re: Eu4 - Using wget with wine

sergelli said...

Ok. Maybe there is not much interest to the programming for the net.

But, if anyone wants to know, see below.

I ran a binary on the Internet, using the function HTTP_GET in a progam on my PC. Every time that the binary is executed, it sends an email and also sends a return to function

When I use Linux, the function htto_get, returns 100% of the time

When using the Windows Seven HTTP_GET the function returns a few times (less than 5%)

When I use Wine, htto_get function, NEVER returns.

Thus, it appears that the function could not run the binary on the Internet, but this is not true, because the mail was sent every time the function was executed HTTP_GET on my PC

But the return of a function is important to know if there was success. As I said above, when I use LInux, there is return of 100% of the time, so here is a suggestion for the development team, improving the return of this function to the Windows platform

I think I understand what went wrong here. I refered you to system() but if you want a return value then you actually want to use http://openeuphoria.org/docs/std_os.html#_1849_system_exec

It is strange that system() would return a value on Linux 100% of the time, as it should return a value 0% of the time.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Eu4 - Using wget with wine AND WINDOWS

jimcbrown said...

I think I understand what went wrong here. I refered you to system() but if you want a return value then you actually want to use http://openeuphoria.org/docs/std_os.html#_1849_system_exec

It is strange that system() would return a value on Linux 100% of the time, as it should return a value 0% of the time.

Yes, you're right, System () never returns. But I'm talking about HTTP_GET() function, running on my PC.

See the line below that is running on my PC.

object xxx=http_get(url&"/MyBinary")

The function http_get() runs MyBinary on my ISP. and returns several lines of this function and also the lines produced by MyBinary But, only in Linux the return is 100%

In order to prove, maybe, you can even do a test, using the demonstration program "wget.ex" that is in your directory euphoria/demo/net and use the binary program that I put in my ISP

new topic     » goto parent     » topic index » view message » categorize

5. Re: Eu4 - Using wget with wine AND WINDOWS

sergelli said...

Yes, you're right, System () never returns. But I'm talking about HTTP_GET() function, running on my PC.

See the line below that is running on my PC.

object xxx=http_get(url&"/MyBinary")

The function http_get() runs MyBinary on my ISP. and returns several lines of this function and also the lines produced by MyBinary

No, it doesn't. That's not how http_get() works.

sergelli said...

In order to prove, maybe, you can even do a test, using the demonstration program "wget.ex" that is in your directory euphoria/demo/net and use the binary program that I put in my ISP

What is the URL to your "binary program" ?

new topic     » goto parent     » topic index » view message » categorize

6. Re: Eu4 - Using wget with wine AND WINDOWS

jimcbrown said...

No, it doesn't. That's not how http_get() works.

Works yes....

And very well.

jimcbrown said...

What is the URL to your "binary program" ?

There is the url:

eui wget http://www.eusoft.com.br/cgi-bin/agendas /confMail?sergio%gelli,sergio%audiophoto.com.br,12345678,aaaaaaaaaaaaaaaaaaaaaa

if you use this line without changing, them I receive a message in my email address sergio@audiophoto.com.br

If you replace with your email, then you will receive a message from this binary.

Notice: don't use @

Use %

new topic     » goto parent     » topic index » view message » categorize

7. Re: Eu4 - Using wget with wine AND WINDOWS

sergelli said...

There is the url:

eui wget http://www.eusoft.com.br/cgi-bin/agendas /confMail?sergio%gelli,sergio%audiophoto.com.br,12345678,aaaaaaaaaaaaaaaaaaaaaa

if you use this line without changing, them I receive a message in my email address sergio@audiophoto.com.br

If you replace with your email, then you will receive a message from this binary.

Notice: don't use @

Use %

When I try to use my email, I think it's telling me that I don't have permission:

wget.ex said...

2-Voc� n�o tem autoriza��o para usar este sistema.

When I use your email, as provided, it seems to work, both with linux and Wine under linux. Both were using a 64-bit, 4.1 version of euphoria.

Matt

new topic     » goto parent     » topic index » view message » categorize

8. Re: Eu4 - Using wget with wine AND WINDOWS

mattlewis said...

When I try to use my email, I think it's telling me that I don't have permission:

wget.ex said...

2-Voc� n�o tem autoriza��o para usar este sistema.

When I use your email, as provided, it seems to work, both with linux and Wine under linux. Both were using a 64-bit, 4.1 version of euphoria. Matt

Probably you used "@" instead "%" recomended

This causes the message about no authorization

Use your e-mail using "%" instead of "@"

For example:

sergio@audiophoto.com = not work
sergio%audiophoto.com = it works

Another thing: the rest of the line can not be changed

So, you get the return of function in Wine? My PC does not receive return of function, but the binary runs on the server and the mail is sent.

Any idea ?

new topic     » goto parent     » topic index » view message » categorize

9. Re: Eu4 - Using wget with wine AND WINDOWS

sergelli said...

Probably you used "@" instead "%" recomended

Another thing: the rest of the line can not be changed

Ah, OK. I had put my name in where yours was in the rest of the request.

sergelli said...

So, you get the return of function in Wine? My PC does not receive return of function, but the binary runs on the server and the mail is sent.

Any idea ?

This is what I get:

<html><head> 
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" / 
><meta http-equiv="Content-Language" content="pt-br" /> 
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" /><title 
>Resposta AgendaPagMe Confirmaτπo e Email</title></head> 
<boby> 
Foi enviada uma mensagem para o seu endereτo [redacted]@gmail.com<br>Com 
 um link para confirmaτπo de seu endereτo de email<br>O arquivo de BackUp de sua 
 agenda somente ficarß disponφvel<br>ap≤s sua confirmaτπo.<br><br><br>O recebime 
nto deste email, normalmente demora cerca de 2 minutos.<br>Caso nπo receba: Conf 
ira sua caixa de SPAN</body></html> 

And I got the emails, too. This was with wine-1.4 from the Ubuntu 12.04 repositories (it's actually a WOW64 installation of Wine).

Matt

new topic     » goto parent     » topic index » view message » categorize

10. Re: Eu4 - Using wget with wine AND WINDOWS

mattlewis said...

And I got the emails, too. This was with wine-1.4 from the Ubuntu 12.04 repositories (it's actually a WOW64 installation of Wine).

Matt

Thanks Matt My Wine is 1.3.24 I go try the 1.4

But in Windows Seven, I'm also having problems. This return. failure in most cases. Ande I know nothing about what might happen with other versions of Windows

Maybe I should try to adapt my program to not use the return

new topic     » goto parent     » topic index » view message » categorize

11. Re: Eu4 - Using wget with wine AND WINDOWS

sergelli said...
mattlewis said...

And I got the emails, too. This was with wine-1.4 from the Ubuntu 12.04 repositories (it's actually a WOW64 installation of Wine).

Matt

Thanks Matt My Wine is 1.3.24 I go try the 1.4

But in Windows Seven, I'm also having problems. This return. failure in most cases. Ande I know nothing about what might happen with other versions of Windows

Maybe I should try to adapt my program to not use the return

A 4.0.5 interpreter on XP just worked for me, too.

Matt

new topic     » goto parent     » topic index » view message » categorize

12. Re: Eu4 - Using wget with wine AND WINDOWS

mattlewis said...

A 4.0.5 interpreter on XP just worked for me, too. Matt

Sorry, but, still no return for me.

Let me be clear: When I try on the prompt "
1) The message is sent
2) If no errors, the prompt is available again in a few seconds

3) No text apears

There is no return as you get and show in the previous post
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /

<meta http-equiv="Content-Language" content="pt-br" />
etc... etc... etc...

I feel silly asking:

Every time you run the line that I sent, you receive a return with these words:
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /
etc...etc...???

new topic     » goto parent     » topic index » view message » categorize

13. Re: Eu4 - Using wget with wine AND WINDOWS

sergelli said...

I feel silly asking:

Every time you run the line that I sent, you receive a return exit with these words:
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /
etc...etc...???

No problem, but yes. I just did it five times in a row (under Wine), and I got that message and 5 emails in my inbox.

Matt

new topic     » goto parent     » topic index » view message » categorize

14. Re: Eu4 - Using wget with wine AND WINDOWS

thanks Matt

I'll go on trying to solve the problem

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu