1. FTP commands, the computer locks

When using FTP commands, the computer locks for missing the connection to the internet.

The solution would be to have a command (which does not lock the PC) to test the connection before using an FTP command.

Anyone know anything about this?

Thank you in advance

new topic     » topic index » view message » categorize

2. Re: FTP commands, the computer locks

sergelli said...

When using FTP commands, the computer locks for missing the connection to the internet.

The solution would be to have a command (which does not lock the PC) to test the connection before using an FTP command.

Anyone know anything about this?

Thank you in advance

Probably the best way to do this would be to run "ping -c 2" or "ping -n 1" (depending on OS), then checking the output to see if it was successful. This returns really fast (in milliseconds) and is semi-reliable. (Unfortunely, due to the nature of the wider TCP/IP Internet, it's hard to get a more reliable response without waiting longer. This is why those FTP commands lock for so long...)

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

3. Re: FTP commands, the computer locks

I make this test in command line

linux-a49v:/home/sergio # wine ping -n 4 www.google.com 
fixme:ping:main this command currently just sleeps based on -n parameter 
linux-a49v:/home/sergio # wine ping -n 4 www.google.com 
fixme:ping:main this command currently just sleeps based on -n parameter 
 

The answer was the same: There was a 4 seg waiting on both lines

The first line was executed with the internet connected
The second line had no internet

Could send more information on using the ping response?

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

4. Re: FTP commands, the computer locks

sergelli said...

I make this test in command line

linux-a49v:/home/sergio # wine ping -n 4 www.google.com 
fixme:ping:main this command currently just sleeps based on -n parameter 
linux-a49v:/home/sergio # wine ping -n 4 www.google.com 
fixme:ping:main this command currently just sleeps based on -n parameter 
 

The answer was the same: There was a 4 seg waiting on both lines

The first line was executed with the internet connected
The second line had no internet

Could send more information on using the ping response?

Since you're using linux/GNU, don't use wine's version of ping. Use the native /bin/ping or /sbin/ping like this

linux-a49v:/home/sergio # ping -c 4 www.google.com 
new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu