1. FTP commands, the computer locks
- Posted by sergelli Mar 04, 2015
- 1426 views
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
2. Re: FTP commands, the computer locks
- Posted by jimcbrown (admin) Mar 04, 2015
- 1403 views
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...)
3. Re: FTP commands, the computer locks
- Posted by sergelli Mar 04, 2015
- 1407 views
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?
4. Re: FTP commands, the computer locks
- Posted by jimcbrown (admin) Mar 04, 2015
- 1428 views
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