您现在的位置是:网站首页> 编程资料编程资料
vtune自动安装脚本分享_linux shell_
2023-05-26
345人已围观
简介 vtune自动安装脚本分享_linux shell_
复制代码 代码如下:
#!/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
相关内容
- 获取站点的各类响应时间(dns解析时间,响应时间,传输时间)_linux shell_
- shell脚本转发80端口数据包给Node.js服务器_linux shell_
- centos中mysql备份数据库脚本分享_linux shell_
- shell中删除文件中重复行的方法_linux shell_
- shell替换文件中的文件路径脚本分享_linux shell_
- shell脚本操作oracle删除表空间、创建表空间、删除用户_linux shell_
- shell对比文件内容脚本分享_linux shell_
- shell使用mysqld_multi自动做多实例从库脚本_linux shell_
- 使用shell检查并修复mysql数据库表的脚本_linux shell_
- 定时导出mysql本地数据替换远程数据库数据脚本分享_linux shell_
