/usr/share/octave/site/m/vlfeat/toolbox/demo/vl_demo_cmd.m is in octave-vlfeat 0.9.17+dfsg0-6+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | function [err,msg] = vl_demo_cmd(name, args)
% DEMO_CMD: Demo: Command line utility
ext = '' ;
switch mexext
case 'mexmac'
arch = 'mac' ;
case 'mexmaci'
arch = 'maci' ;
case 'mexmaci64'
arch = 'maci64';
case 'mexglx'
arch = 'glnx86' ;
case 'mexa64'
arch = 'glnxa64' ;
case 'dll'
arch = 'win32' ;
ext = '.exe' ;
case 'mexw32'
arch = 'win32' ;
ext ='.exe' ;
case 'mexw64'
arch = 'win64' ;
ext ='.exe' ;
end
cmd = fullfile(vl_root,'bin',arch,[name ext]) ;
str = ['"' cmd '" ' args] ;
disp(str);
[err,msg] = system(str) ;
|