I am working on a script to verify some services and applications are running on an AIX server after reboot. My script is running commands then echoing the results back so we can visually acknowledge. However I keep encountering syntax errors complaining about an unmatched quote. The script is below
OUTPUT1=$(ps -ef | grep -E "winbind|smbd|nmbd")
OUTPUT1=$(ps -efo user,pid,args | grep PRISM)
echo "ps -ef | grep -E "winbind|smbd|nmbd"
echo "ps -efo user,pid,args | grep PRISM"