Forum Discussion

sparmar's avatar
sparmar
Level 3
13 years ago

SF 6.0 response file issues

Hello   I wonder if I can call upon your skills again.   I'm installing SF v.6 onto a Linux Platform, and trying to script an automated install onto multiple servers, without much luck.   ...
  • mikebounds's avatar
    13 years ago

    The response file is perl so you MAY be able to use perl syntax, but I have automated install using responsefiles and just used sed.  Just save generated responsefile to "responsefile.template" just changing hostname to "%MYHOST%" so line in responsefile reads:

    $CFG{systems}=[ qw(%MYHOST%) ];

    and then run script 

     MYHOST=`/bin/hostname -s`
    sed -e s/%MYHOST%/$MYHOST/ responsefile.template > ${MYHOST}.resp

    and then call installer with responsefile  ${MYHOST}.resp.

    I used this method changing a whole load of variables to configure VCS so expanded sed statement to have a lot of "-e" flags so something like:

     

    sed -e s/%MYHOST%/$MYHOST/ -e s/%MYVAR2%/$MYVAR2/ responsefile.template > ${MYHOST}.resp

     

    Mike