vtune自動(dòng)安裝腳本分享
更新時(shí)間:2014年03月22日 14:44:26 作者:
這篇文章主要介紹了vtune自動(dòng)安裝腳本分享,需要的朋友可以參考下
復(fù)制代碼 代碼如下:
#!/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 \"\r\n\";
expect "*Enter*"; send \"\r\n\";
expect "*Enter*"; send \"\r\n\";
while {1} {
expect {
"*--More--*" {send \"\r\n\"}
"*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 \"\r\n\";
expect "*selection:*"; send "1\\r";
expect "*Enter*"; send \"\r\n\";
set timeout 25;
expect "*Enter*"; send \"\r\n\";
expect "*Enter*"; send \"\r\n\";
expect eof;"
rm -rf /root/*
source /opt/intel/vtune_amplifier_xe_2013/amplxe-vars.sh
相關(guān)文章
Centos下查看網(wǎng)卡的實(shí)時(shí)流量命令
本文介紹了linux下查看網(wǎng)卡流量的六種方法,linux系統(tǒng)中使用nload、iftop、iostat等工具查看網(wǎng)卡流量,這里我們先來詳細(xì)講解下 iptraf 方法,需要的朋友參考下。2015-05-05Shell腳本中調(diào)用、引用、包含另外一個(gè)腳本文件的兩種方法
這篇文章主要介紹了Shell腳本中調(diào)用、引用、包含另外一個(gè)腳本文件的兩種方法,本文介紹的兩種方法適合在當(dāng)前目錄下,需要的朋友可以參考下2014-12-12ssh自動(dòng)登錄的4種實(shí)現(xiàn)方法
這篇文章主要介紹ssh自動(dòng)登錄的幾種實(shí)現(xiàn)方法,需要的朋友可以參考下2013-02-02Shell腳本函數(shù)定義和函數(shù)參數(shù)
這篇文章主要介紹了Shell腳本函數(shù)定義和函數(shù)參數(shù),分別介紹了2種自定義函數(shù)的方法,以及定義帶返回值函數(shù)的方法,需要的朋友可以參考下2014-07-07Shell腳本實(shí)現(xiàn)的猜數(shù)字小游戲
這篇文章主要介紹了Shell腳本實(shí)現(xiàn)的猜數(shù)字小游戲,本文的猜數(shù)字規(guī)則相對(duì)一般規(guī)則的猜數(shù)字可能難度要大不少,需要的朋友可以參考下2014-12-12Linux?signal()函數(shù)的使用學(xué)習(xí)
這篇文章主要為大家介紹了Linux?signal()函數(shù)的使用學(xué)習(xí)及示例解析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-05-05