(Ubuntu 16.04) Someone gave me a batch file to use a program in command line. So I put it in a folder and create an aliase to be able to use it everywhere (and it works).
But now, I want to run this program from Matlab. So I tried
system('bhsim command line');
and obtained this error :
/bin/bash: bhsim : commande introuvable
bhsim is the name of the program I want to run.
There is (at least) to solution :
The first is giving the full path (skr's answer)
system('/path/bhsim command line');
The second is : add the path to $PATH. On Ubuntu :
(in the terminal)
export PATH=$PATH:/path/to/bhsim/
and then you can use
system('bhsim command line');
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments