I have something like this.
for client in arg
do
ssh qsapp "ptree $client" >> results.temp.$$
for process in process1 process2 process3
do
if grep $process results.temp.$$ >/dev/null
then
: # Process Exists
else
echo $client $process missing >> client_report.out
fi
done
done
rm results.temp.$$
But how would I invoke the shell script. I want the user to supply the list of clients as comma separated array to the script as argument.
Main Topics
Browse All Topics





by: ozoPosted on 2008-01-14 at 12:56:08ID: 20656698
#!/bin/ksh
for arg
do
echo $arg
done