blob: 94caf7952206ada2e7570b073711f8adbb55b4ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
clc
disp("Example 3 : Display the value of the path variable of the current command interpreter")
disp('*************************************************************************')
disp("Answer :")
printf("THE FOLLOWING LINES OF CODE RUN \nONLY IN SCILAB INSTALLED IN UNIX ENVIRONMENT.....")
printf("\nTHE CONSOLE GIVES DIFFERENT \nOUTPUT IN OTHER OPERATING SYSTEMS\n\n")
halt('Continue ?? ? ...')
if (getos() ~= "Linux" ) then
printf("The value of PATH variable is %s",SCIHOME)
else
unix_w('echo The value of path variable is $PATH')
end
disp("****************************************************************************")
|