当前位置:  操作系统/服务器>linux

vtune自动安装脚本分享

    来源: 互联网  发布时间:2014-10-16

    本文导语:  代码如下:#!/bin/bash#!/usr/bin/expect -f#!/usr/bin/env bashyum install -y expect wgetcd /rootwget http://172.16.92.99/share/tar/vtune_amplifier_xe_2013_update15.tar.gzwget http://172.16.92.99/share/tar/EVAL_L_VT__VGXB-RDCJPN8X.lictar -zxvf vtune_amplifier_xe_2013_update15.tar.gzexpect -c "spa...

代码如下:

#!/bin/bash
#!/usr/bin/expect -f
#!/usr/bin/env bash
yum install -y expect wget
cd /root
wget http://172.16.92.99/share/tar/vtune_amplifier_xe_2013_update15.tar.gz
wget http://172.16.92.99/share/tar/EVAL_L_VT__VGXB-RDCJPN8X.lic
tar -zxvf vtune_amplifier_xe_2013_update15.tar.gz
expect -c "spawn sh /root/vtune_amplifier_xe_2013_update15/install.sh;
set timeout 5; expect "*Enter*"; send "rn";
expect "*Enter*"; send "rn";
expect "*Enter*"; send "rn";
while {1} {
expect {
"*--More--*" {send "rn"}
"*accept*" {break}
}
}
expect "*accept*"
send "accept\r"
expect "*selection*";send "3\r";
expect "*choice*"; send "2\r";
send "/root/EVAL_L_VT__VGXB-RDCJPN8X.lic"
expect "*Enter*"; send "rn";
expect "*selection:*"; send "1\r";
expect "*Enter*"; send "rn";
set timeout 25;
expect "*Enter*"; send "rn";
expect "*Enter*"; send "rn";
expect eof;"
rm -rf /root/*
source /opt/intel/vtune_amplifier_xe_2013/amplxe-vars.sh

    
 
 

您可能感兴趣的文章:

  • vtune自动化安装脚本
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 虚拟通道 VTune


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3