summaryrefslogtreecommitdiff
path: root/1088/CH1/EX1.5/Example5.sce
blob: 529f9ee59ca142db55890a5e63bec68b18d9da7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
clc

disp("Example 5:  Display all the current working processes in the current session")
printf("\n*******************************************************************\n")
disp('Answer    : ')
disp('')
halt('Press Enter to display the processes')
if (getos()=='Windows') then
clc(1)
powershell('ps')
else
 clc(1)
 unix_w('ps')
end
printf("\n*******************************************************************\n")