summaryrefslogtreecommitdiff
path: root/1088/CH4/EX4.1/Example1.sce
blob: ba80abb08b196ce9c3019c66e136a552ee87ab94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mode(-1)
clear
clc

disp("Example 1    :               Show the path of the home directory of the file system")
disp("****************************************************************")
disp("Answer    :   ")
disp("INSTRUCTIONS   : ")
printf("\nHere all instructions are preloaded in the form of a demo\nPRESS ENTER AFTER EACH COMMAND to see its RESULT\nPRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND\n")
halt('.............Press [ENTER] to continue.....')
halt("")
clc
printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n")
printf("\n\n$ echo $HOME                        #To get the value of the home directory\n\n")
halt("........# (hit [ENTER] for result)")
clc(1)
printf(" %s \n",home)
halt("........# (hit [ENTER] for next instruction)")
printf("\n\n\n$ exit        #To exit the current simulation terminal and return to Scilab console\n\n")
halt("........# (hit [ENTER] for result)")
//clc()
printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment')
sleep(1000)