gpt4 book ai didi

linux - 当我运行此代码时,我将获取当前目录中存在的所有文件

转载 作者:太空宇宙 更新时间:2023-11-04 06:05:02 26 4
gpt4 key购买 nike

#!/bin/bash
echo ....Script by Aravindh kudiyarasan...
array=(alfresco jboss WAS)
for i in "${array[@]}"; do
var=$(ps -ef |grep java |grep -i $i |cut -d"=" -f1)
if [ -n "$var" ]; then
echo *** Application $i is Running ***
fi`enter code here`
done

最佳答案

替换

echo *** Application $i is Running ***

echo "*** Application $i is Running ***"

关于linux - 当我运行此代码时,我将获取当前目录中存在的所有文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49203563/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com