Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

Instruct VTune to launch app in bash shell

Ryan_H_2
Beginner
851 Views

I am having trouble launching my application from VTune. We've got a number of bash shell scripts that need to run to set up the environment first. So, I'd like VTune to launch a new bash shell to run my application in. If I do a ps command in the launch application, I see that it is launching /bin/sh. Unfortunately, that is linked to dash on our system (https://wiki.ubuntu.com/DashAsBinSh). Is there a way to instruct VTune to use a new bash shell (perhaps a env variable)?

 

Ryan

0 Kudos
3 Replies
David_A_Intel1
Employee
851 Views

have you tried specifying bash as the app to launch and your script as the command argument to bash?

0 Kudos
Ryan_H_2
Beginner
851 Views

Thanks for the response. Yes, I tried that. The resulting bash env is not the same as if I ran the script from a new bash shell command line. From what I gather, /bin/sh is started and a /bin/bash shell inherits its env (never running any bashrc files).

Ryan

0 Kudos
David_A_Intel1
Employee
851 Views

Try adding this option to the command arguments and specifying your bashrc file.

  • The --rcfile file option will force Bash to read and execute commands from file instead of ~/.bashrc.
0 Kudos
Reply