[英]Linux terminal ping but only True/False
如何使用ping命令測試 web 地址的可訪問性,但它只返回 True 或 False? 類似於 PowerShell 的 我用谷歌搜索了它,僅此而已。 ...
[英]Linux terminal ping but only True/False
如何使用ping命令測試 web 地址的可訪問性,但它只返回 True 或 False? 類似於 PowerShell 的 我用谷歌搜索了它,僅此而已。 ...
[英]Python - Pinging multiple IPs from text
我是 Python 的新手,正在嘗試制作腳本,但我有點迷路了。 我想檢查 text1.txt 中的 IP 是否在 text2.txt 中。 如果不是,我想 ping 它們,如果 ping 正常,那么我想將它們添加到 text3.txt。 如果 ping 不正常,我想將它們添加到 text4.txt ...
[英]Unable to Reach Internet from Private Ec2 with NAT Gateway
我無法從我的 AWS VPC 中的私有 EC2 實例 ping google.com。 我在私有實例前設置了一個堡壘,並通過鱷梨醬連接到它。 但是一旦我登錄並運行ping google.com ,它就會掛起。 我的堡壘安全組入站/出站規則如下所示: 以下是私有實例的入站/出站規則: 我的網絡 ...
[英]Python ping by reading txt file contain list of IP address and string or name next to it
我正在測試運行簡單的腳本,通過調用文本文件 iplist.txt 來 ping 幾台服務器。 如果 txt 文件僅包含 IP 地址,則腳本有效。 現在,我在 iplist.txt 中的 IP 地址旁邊添加了主機名,但 ping 失敗了。 我認為問題是脫衣舞部分, ...
[英]Pythonanywhere - ping: socket: Operation not permitted
請幫忙。 我有一個電報機器人,當我從 Bash 控制台啟動他時,每 60 秒 ping static IP - 它工作正常,但每天停止工作一次。 我嘗試使用 Always on task 但在日志文件中收到“ping: socket: Operation not permitted”。 我有 5 美 ...
[英]Flutter/Dart: Parse the results of Ping Function
所以我正在使用這個 function,它利用了 dart_ping.dart package,我只想從這個 function 給出的結果中提取 ip、ttl 和時間。 } ...
[英]ping constantly an IP and write into txt
我有這個代碼 我想將對 google 的無限 ping 保存在一個 txt 文件中。 可能嗎? ...
[英]Sending multiple pings in c
我在 C 中寫了一個代碼,每秒 ping 一個主機(例如:./ping 8.8.8.8)。 程序向主機發送一個ICMP ECHO REQUEST,當收到ICMP-ECHO-REPLY時,程序將發送下一個ICMP ECHO REQUEST(無需停止)。 但它只 ping 一次,然后當我嘗試在第二次 ...
[英]How do I create a boolean variable linked to the printed output?
我想根據此命令的結果創建邏輯。 我可以在我的終端上看到打印的“1”或“0”,但我不確定如何根據此結果創建 boolean 變量。 ...
[英]Why is the Hashref passed to the Net::Ping constructor, set to an empty hashref after Net::Ping->new($args)?
我在這里錯過了什么? 當像這樣向 Net::Ping 傳遞參數時,在初始化構造函數 Net::Ping->new($args) 之后,$args 和 $args_copy 都將被設置為一個空的 hashref。 我在運行帶有 Perl v5.30.0 的 Ubuntu 20.04.4 LTS ...
[英]I want to do a ping a host, if No response, send to txt file with the comment "No Response", if response, send to txt file with the comment "Response"
目前,我有這段代碼。 這是我真正想要的 50%。 我認為結果代碼是: ...
[英]Bash script to ping IP address and report with a datestamp when the station changes ping result in a loop
我首先需要通過我的 SD/WAN 網絡 ping 遠程辦公室 Cisco Catalyst。 基本的 ping 命令工作得很好,但是一堆輸出既令人生畏又不是很有用。 更具體地說,我需要的是遠程 Catalyst 更改其 ping 狀態時的日期和時間戳。 不可訪問的日期和時間,以及再次可訪問的日期和時 ...
[英]Windows pop up message when responds to ping [cmd, PowerShell]
當被 ping 的機器可用時,是否可以運行特定腳本並接收消息(如 msg 命令)? ...
[英]PIng throws socket/dns exceptions
從我的 WPF,我需要不斷驗證 inte.net 連接,連接可用設置為綠色,如果沒有連接,設置為紅色。 從我下面的代碼我有以下問題: 如果沒有 inte.net 連接或者如果我拉 rj45 局域網電纜或者如果我放置靜態/隨機 ip 192.168.192.90、255.255.255.0、網關:19 ...
[英]Save a text file replacing the regular expression from variable in python
我正在使用此代碼在文本文件中保存一個 ping 命令: 此代碼使用 /r/n 等正則表達式保存文本但是當我打開文本文件或打印變量時 - 文本以這種方式保存:\r\nDisparando www.google.com [2800:3f0:4001:81b::2004] com 32 bytes de ...
[英]Using Variable in Powershell's ping.exe Path
我在嘗試將 output 我的 powershell ping 結果放入一個將部分路徑作為變量的文件時遇到了問題。 這應該怎么做? 它在我嘗試將 $DATA_FOLDER 與 _hal 和 rest 連接的部分被炸毀。我嘗試刪除 + 和空格無濟於事。 如果我將 $DATA_FOLDER + 替換為 ...
[英]Improve PS Scripts (jobs, ping, etc)
我在 PS 中准備了一個腳本,這部分看起來是這樣的: "$Octets.11","$Octets.12","$Octets.13","$Octets.14",..., "$Octets.51" - 我想“削減”這部分代碼,是否可以寫這樣的句子:“$Octets.11” - “$Octets.51 ...
[英]Simultaneously ping code slows down and breaks as computer up time increases. What's going on?
我有適用於多個物聯網設備的 Python 代碼。 我可以 ssh 同時進入其中許多,沒有任何問題(使用 pexpect 庫)。 這是在 multiprocessing.pool.ThreadPool 中完成的。 在重新啟動我的 MacBook 后,在線程池中 ping 多台主機也能正常工作。 對 ...
[英]How to fix: Cannot read properties of undefined (reading 'Promise')?
我正在嘗試在nestJs項目中使用npm ping ping和ip地址/url,一旦我發送get請求,我會收到500錯誤響應,並且netsJs中出現此錯誤: [Nest] 17732 - 2022 年 9 月 19 日,凌晨 3:47:16 錯誤 [ExceptionsHandler] 無法讀取 ...
[英]Is there a way for client to connect to backend and wait for ping from external source
當用戶從客戶端應用程序(Angular)向我的后端應用程序(節點)發出請求時,我有一個用例,該請求在 Airflow 上手動運行任務。 Airflow 沒有等待完成運行響應后端並確認任務正在運行。 我能做的就是向后端發出 HTTP 請求以告知任務已完成。 那么,客戶端是否可以通過 Airflow ...