当前位置:网站首页>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:
边栏推荐
- Make the most basic root file system of Jetson nano and mount NFS file system on the server
- Hudi learning notes (III) analysis of core concepts
- Flink学习笔记(十一)Table API 和 SQL
- Nodemcu-esp8266 development board to build Arduino ide development environment
- About the configuration of vs2008+rade CATIA v5r22
- Trial of the combination of RDS and crawler
- Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)
- 小王叔叔的博客目录【持续更新中】
- Crawler career from scratch (V): detailed explanation of re regular expression
- Flink学习笔记(九)状态编程
猜你喜欢

全球KYC服务商ADVANCE.AI 活体检测产品通过ISO国际安全认证 产品能力再上一新台阶

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

Flink学习笔记(十一)Table API 和 SQL

Leetcode daily question (1162. as far from land as possible)

Spark 结构化流写入Hudi 实践

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

Vscode Arduino installation Library

Flink-CDC实践(含实操步骤与截图)

Spark 集群安装与部署

【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
随机推荐
Django operates Excel files through openpyxl to import data into the database in batches.
Arduino handles JSON data, arduinojson assistant
The server denied password root remote connection access
Nodemcu-esp8266 development board to build Arduino ide development environment
Hudi learning notes (III) analysis of core concepts
Leetcode daily question (516. long palindromic subsequence)
Leetcode daily question (2232. minimize result by addressing parents to expression)
The idea of compiling VBA Encyclopedia
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
Hudi data management and storage overview
基于opencv实现桌面图标识别
Leetcode daily question (1162. as far from land as possible)
软件测试工程师是做什么的 通过技术测试软件程序中是否有漏洞
【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
[set theory] order relation (chain | anti chain | chain and anti chain example | chain and anti chain theorem | chain and anti chain inference | good order relation)
Construction of simple database learning environment
LeetCode每日一题(968. Binary Tree Cameras)
Hudi 集成 Spark 数据分析示例(含代码流程与测试结果)
Leetcode daily question (1856. maximum subarray min product)
Flink-CDC实践(含实操步骤与截图)