#!/bin/bash
python gen_service_list.py >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "failed"
else
echo "succeed"
fi
不输出到页面,执行结果成功返回succeed,失败返回failed
2023-12-23 17:15:51
#!/bin/bash
python gen_service_list.py >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "failed"
else
echo "succeed"
fi
不输出到页面,执行结果成功返回succeed,失败返回failed