Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hiraskar__hrishi
Beginner
99 Views

Run a script as root

I need to run a DPDK application under vtune amplifier. It needs to be run with super user privileges. This application is run using a script as it needs some environment variables to be set.

Usually I run this script by switching the user to root.

How can I do this?

Things that I've tried:
+ Run vtune amplifier as root, but this fails to launch any application saying 'License check failed'.
+ Set suid bit on the script, but this fails to run the application.

0 Kudos
3 Replies
Kirill_U_Intel
Employee
99 Views

Hi.

Could you try to copy licenses dir ~/intel/licenses to the product dir VTUNE_INSTALL_DIR/licenses and run root gui again?

Does it still have license issues?

Kirill

Vitaly_S_Intel
Employee
99 Views

VTune checks license on finalization step only. You can collect on any target platform and under any user. When you see the message about license check failure, the result directory should already contain all the collected traces. Now you can open it under your regular user (make sure files within result directory are accessible to this user) to cause data analysis and report.

hiraskar__hrishi
Beginner
99 Views

[SOLVED]

Solution:

I just reinstalled vtune as a root user.

Reply