Hi, I am an absolute beginner at perl and currently going through the tutorials and these forums. I have a fairly simple task and was wondering if I could get some help on this forum. basically, we have a startup script for a particular software package that is in perl and we need to modify it to follow the following algorithm to get the processor id to bind to:
On statrup
execute shell script to get processor id to bind to
If shell script returns null or non-numeric value, log
and error to an error log and continue with alternate
method that already exists to get processor id
else call bind_cpu with the processor id returned
what would a sample perl snippet to accomplish this task look like. thanks for the help.