summaryrefslogtreecommitdiff
path: root/1088/CH4/EX4.4
diff options
context:
space:
mode:
Diffstat (limited to '1088/CH4/EX4.4')
-rwxr-xr-x1088/CH4/EX4.4/Example4.sce41
-rwxr-xr-x1088/CH4/EX4.4/Result4.pdf64
-rwxr-xr-x1088/CH4/EX4.4/Result4.txt64
3 files changed, 169 insertions, 0 deletions
diff --git a/1088/CH4/EX4.4/Example4.sce b/1088/CH4/EX4.4/Example4.sce
new file mode 100755
index 000000000..2cd948581
--- /dev/null
+++ b/1088/CH4/EX4.4/Example4.sce
@@ -0,0 +1,41 @@
+clear
+mode(-1)
+rmdir('pis')
+pwd
+cwd=ans
+clc
+
+printf("Example 4 : Show the method of creating a directory named pis \n \t\tand surf to the same directory \n")
+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$ mkdir pis #To make a directory named pis\n\n")
+halt("........# (hit [ENTER] for result)")
+clc(1)
+mkdir('pis')
+
+printf("\n\n\n$ cd pis #To go to the current directory\n\n")
+halt("........# (hit [ENTER] for next instruction)")
+clc(1)
+cd 'pis'
+xt=ans
+
+printf("\n\n\n$ pwd \n\n")
+halt("........# (hit [ENTER] for result)")
+clc(1)
+printf(" %s \n",xt)
+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)")
+cd(cwd)
+//clc()
+
+printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment')
+sleep(1000)
diff --git a/1088/CH4/EX4.4/Result4.pdf b/1088/CH4/EX4.4/Result4.pdf
new file mode 100755
index 000000000..849fdc54a
--- /dev/null
+++ b/1088/CH4/EX4.4/Result4.pdf
@@ -0,0 +1,64 @@
+ ans =
+
+ 1.
+
+-->exec('Example4.sci',-1)
+Current date is 02-Jun-2013
+
+Welcome to the Textbook Companionship Project 2013
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Book Title : UNIX CONCEPTS AND APPLICATIONS
+
+ Book Edition : 4
+
+ Book Author : Sumitabha Das
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Code Author : Pranav Bhat T
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Chapter Number : 4
+
+ Chapter Title : THE FILE SYSTEM
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+Example 4 : Show the method of creating a directory named pis
+ and surf to the same directory
+
+ ****************************************************************
+
+ Answer :
+
+ INSTRUCTIONS :
+
+Here all instructions are preloaded in the form of a demo
+PRESS ENTER AFTER EACH COMMAND to see its RESULT
+PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND
+.............Press [ENTER] to continue..... UNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)
+
+
+
+
+$ mkdir pis #To make a directory named pis
+
+........# (hit [ENTER] for result)
+
+
+$ cd pis #To go to the current directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4\pis
+........# (hit [ENTER] for next instruction)
+
+
+$ exit #To exit the current simulation terminal and return to Scilab console
+
+........# (hit [ENTER] for result)
+
+ BACK TO SCILAB CONSOLE...
+Loading initial environment
+-->diary(0)
diff --git a/1088/CH4/EX4.4/Result4.txt b/1088/CH4/EX4.4/Result4.txt
new file mode 100755
index 000000000..849fdc54a
--- /dev/null
+++ b/1088/CH4/EX4.4/Result4.txt
@@ -0,0 +1,64 @@
+ ans =
+
+ 1.
+
+-->exec('Example4.sci',-1)
+Current date is 02-Jun-2013
+
+Welcome to the Textbook Companionship Project 2013
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Book Title : UNIX CONCEPTS AND APPLICATIONS
+
+ Book Edition : 4
+
+ Book Author : Sumitabha Das
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Code Author : Pranav Bhat T
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Chapter Number : 4
+
+ Chapter Title : THE FILE SYSTEM
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+Example 4 : Show the method of creating a directory named pis
+ and surf to the same directory
+
+ ****************************************************************
+
+ Answer :
+
+ INSTRUCTIONS :
+
+Here all instructions are preloaded in the form of a demo
+PRESS ENTER AFTER EACH COMMAND to see its RESULT
+PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND
+.............Press [ENTER] to continue..... UNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)
+
+
+
+
+$ mkdir pis #To make a directory named pis
+
+........# (hit [ENTER] for result)
+
+
+$ cd pis #To go to the current directory
+
+........# (hit [ENTER] for next instruction)
+
+
+$ pwd
+
+........# (hit [ENTER] for result) C:\Users\Pranav Bhat\Documents\TCPMUM\Chapter4\pis
+........# (hit [ENTER] for next instruction)
+
+
+$ exit #To exit the current simulation terminal and return to Scilab console
+
+........# (hit [ENTER] for result)
+
+ BACK TO SCILAB CONSOLE...
+Loading initial environment
+-->diary(0)