您现在的位置是:网站首页> 编程资料编程资料
vtune自动化安装脚本_linux shell_
2023-05-26
333人已围观
简介 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
相关内容
- 利用shell删除数据表中指定信息和字段对应的文件_linux shell_
- nginx多server日志分割脚本分享_linux shell_
- 图片批量压缩大小脚本分享_linux shell_
- shell统计pv和uv、独立ip的方法_linux shell_
- 脚本自动添加crontab示例_linux shell_
- bash获取当前路径示例_linux shell_
- shell脚本实现ssh自动登录功能分享_linux shell_
- 分享一个实用的iptables脚本(各种过滤写法参考)_linux shell_
- linux shell流程控制语句实例讲解(if、for、while、case语句实例)_linux shell_
- shell脚本中28个特殊字符的作用简明总结_linux shell_
