[gridengine users] Can a 6.2u5 node talk to a 6.2u3 cluster?

Alan McKay alan.mckay at gmail.com
Mon Sep 23 18:44:07 UTC 2013


On Mon, Sep 23, 2013 at 2:27 PM, Reuti <reuti at staff.uni-marburg.de> wrote:
> Ups, not `uniq` - the lines aren't identical. Better pipe to: head -n 1

Close ... I had to do a tail -n 1 but when putting togehter libc_version

Total edits here around line 230 - seems to continue to work fine on
RHEL/CentOS and now works on Ubuntu.  Will see about install now :

      case $lxmachine in
      amd64)
# alan begin
        if [ -f /lib64/libc.so.6 ]
        then
         libc_string=`strings /lib64/libc.so.6 | grep "GNU C Library"`
        elif [ -e /lib/x86_64-linux-gnu/libc.so.6 ]
        then
         libc_string=`strings /lib/x86_64-linux-gnu/libc.so.6 | grep
"GNU C Library" | head -n 1`
        fi
# alan end - original below
#         libc_string=`strings /lib/x86_64-linux-gnu/libc.so.6 | grep
"GNU C Library"`
         ;;
      ia64)
         libc_string=`strings /lib/libc.so.6.1 | grep "GNU C Library"`
         ;;
      *)
         libc_string=`strings /lib/libc.so.6 | grep "GNU C Library"`
         ;;
      esac

      # retrieving libc version failed
      if [ $? -ne 0 ]; then
         unsupported="UNSUPPORTED-"
         lxrelease="${lxrelease}-GLIBC"
      else
# alan
#         libc_version=`echo $libc_string | tr ' ,' '\n' | grep "2\."
| cut -f 2 -d "." | tail -n 1`
         libc_version=`echo $libc_string | tr ' ,' '\n' | grep "2\." |
cut -f 2 -d "." | tail -n 1`



-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"




More information about the users mailing list