2016-06-24 3 views
0

私はBusyBox v1.23.2 multi-call binary.に単純なtftp-clientを持っています。 tftpサーバーとの接続性とファイルのアクセシビリティを確認する必要があります。 FTPのそれは次のようになります。tftpサーバとの接続性とそのファイルのアクセシビリティのチェック

if wget -q -s $url; then 
      echo "found" 
fi 

は、TFTPのための信頼できる解決策はありますか?

P.S.私はファイルをダウンロードしようとすることはできません(大きすぎます)。

アップデート:私はそのようなシナリオを実装することができますBusyBoxのソースコードにハックを追加することによって、問題を解決:

"No.","Source","Destination","Info" 
"1","192.168.0.8","192.168.0.6","Read Request, File: some_folder/file.txt, Transfer type: octet, blksize\\000=4096\\000, tsize\\000=0\\000" 
"2","192.168.0.6","192.168.0.8","Option Acknowledgement, blksize\\000=4096\\000, tsize\\000=10094\\000" 
"3","192.168.0.8","192.168.0.6","Error Code, Code: Not defined, Message: Connection checking" 

答えて

0

私はこれがあなたのために働くだろうと思います。

$ wget --spider http://henning.makholm.net/ 
Spider mode enabled. Check if remote file exists. 
--2011-08-08 19:39:48-- http://henning.makholm.net/ 
Resolving henning.makholm.net (henning.makholm.net)... 85.81.19.235 
Connecting to henning.makholm.net (henning.makholm.net)|85.81.19.235|:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 9535 (9.3K) [text/html]  <------------------------- 
Remote file exists and could contain further links, 
but recursion is disabled -- not retrieving. 
関連する問題