Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement vtune Automation installation script

Shulou Source: shulou.com Published: 2022-06-03 08:06:15 11月15日 Update

This article introduces the relevant knowledge of "how to implement vtune automation installation script". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The code is as follows:

#! / 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

This is the end of the content of "how to implement vtune Automation installation script". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Scripts automation content more knowledge practicality learning next code dilemma reality situation articles cases editing websites industries processes high quality learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Docker Shulou Tech Info macOS MySQL