当前位置:网站首页>Shell logic case
Shell logic case
2022-07-03 09:36:00 【chenhyc】
Case study 1:ping Pass back www.baidu.com is up,ping No return www.baidu.com is down
Code :ping -c1 www.baidu.com && echo “www.baidu.com is up” || “www.baidu.com is down”
remarks , If not shown ping The process , You can change to :ping -c1 www.baidu.com &> /dev/null
Case study 2:
边栏推荐
- Find all possible recipes from given supplies
- Common formulas of probability theory
- Leetcode daily question (2090. K radius subarray averages)
- Analysis of the implementation principle of an open source markdown to rich text editor
- LeetCode每日一题(2232. Minimize Result by Adding Parentheses to Expression)
- Construction and test of TFTP server under unbuntu (Debian)
- 用Redis实现分布式锁
- PowerDesigner does not display table fields, only displays table names and references, which can be modified synchronously
- Installation and uninstallation of pyenv
- Global KYC service provider advance AI in vivo detection products have passed ISO international safety certification, and the product capability has reached a new level
猜你喜欢

Hudi integrated spark data analysis example (including code flow and test results)

Flink learning notes (VIII) multi stream conversion

Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)

Spark 概述

数字身份验证服务商ADVANCE.AI顺利加入深跨协 推进跨境电商行业可持续性发展

Hudi data management and storage overview

Hudi 数据管理和存储概述

Please tell me how to set vscode

PolyWorks script development learning notes (III) -treeview advanced operation

Spark structured stream writing Hudi practice
随机推荐
Spark 概述
Patent inquiry website
Flink学习笔记(十一)Table API 和 SQL
Jestson nano downloads updated kernel and DTB from TFTP server
Database execution error: SQL_ mode only_ full_ group_ by:
Leetcode daily question (2212. maximum points in an archery competition)
Utilisation de hudi dans idea
Send mail using WP mail SMTP plug-in
Win10安装ELK
Leetcode daily question (2109. adding spaces to a string)
[CSDN] C1 training problem analysis_ Part III_ JS Foundation
Spark structured stream writing Hudi practice
LeetCode每日一题(1162. As Far from Land as Possible)
Crawler career from scratch (I): crawl the photos of my little sister ① (the website has been disabled)
The rise and fall of mobile phones in my perspective these 10 years
Flask+supervisor installation realizes background process resident
Hudi data management and storage overview
Global KYC service provider advance AI in vivo detection products have passed ISO international safety certification, and the product capability has reached a new level
LeetCode每日一题(1996. The Number of Weak Characters in the Game)
Installation and uninstallation of pyenv