I need some help.
I am trying to write a menu script that does the following:
1. Goes out and finds certain files and puts them in a menu
2. Looks for a specific process and PID and give me the option to kill the process (with validation if possible)
Lastly, I do not want the user to be able to break out of the script. I have been beating my head against a wall to figure this one out.
this is what I have so far:
#!/bin/ksh
select dsmlog in $(find /usr/tivoli/tsm -type f -name '*.log') $(find /usr/tivol
i/tsm -type f -name '*.opt') $(find /usr/tivoli/tsm -type f -name '*.sys') $(fin
d /usr/tivoli/tsm -type f -name 'TDP*.log') $(errpt)
do
if [[ $dsmlog = END ]]
then
print "Exit option"; exit 0
fi
[ $dsmlog ] && view $dsmlog
break
done
Help me please
Brian
I am trying to write a menu script that does the following:
1. Goes out and finds certain files and puts them in a menu
2. Looks for a specific process and PID and give me the option to kill the process (with validation if possible)
Lastly, I do not want the user to be able to break out of the script. I have been beating my head against a wall to figure this one out.
this is what I have so far:
#!/bin/ksh
select dsmlog in $(find /usr/tivoli/tsm -type f -name '*.log') $(find /usr/tivol
i/tsm -type f -name '*.opt') $(find /usr/tivoli/tsm -type f -name '*.sys') $(fin
d /usr/tivoli/tsm -type f -name 'TDP*.log') $(errpt)
do
if [[ $dsmlog = END ]]
then
print "Exit option"; exit 0
fi
[ $dsmlog ] && view $dsmlog
break
done
Help me please
Brian