diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1088/CH1/EX1.4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1088/CH1/EX1.4')
-rwxr-xr-x | 1088/CH1/EX1.4/Example4.sce | 22 | ||||
-rwxr-xr-x | 1088/CH1/EX1.4/Result4.pdf | 46 | ||||
-rwxr-xr-x | 1088/CH1/EX1.4/Result4.txt | 46 |
3 files changed, 114 insertions, 0 deletions
diff --git a/1088/CH1/EX1.4/Example4.sce b/1088/CH1/EX1.4/Example4.sce new file mode 100755 index 000000000..60c28fabc --- /dev/null +++ b/1088/CH1/EX1.4/Example4.sce @@ -0,0 +1,22 @@ +clear +clc + +disp("Example 4 : Display all the current users in the Current Unix Session") +disp('') +printf("\n*******************************************************************\n") +disp("Answer :") +printf("THE FOLLOWING LINES OF CODE RUN \nONLY IN SCILAB INSTALLED IN UNIX ENVIRONMENT.....") +printf("\nTHE CONSOLE GETS EXITED IN OTHER\n OPERATING SYSTEMS") +if(getos() ~= "Linux" )then + disp("") + halt('Press any key to end the script since the OS is not Linux') + printf("Close the Scilab Console?....\ny :Yes\nAny other key:No") + st = input('','s') + clc(1) + if( st == "y") then + exit + end +else + unix_w("who") +end +printf("\n*******************************************************************\n") diff --git a/1088/CH1/EX1.4/Result4.pdf b/1088/CH1/EX1.4/Result4.pdf new file mode 100755 index 000000000..4ed2c97d9 --- /dev/null +++ b/1088/CH1/EX1.4/Result4.pdf @@ -0,0 +1,46 @@ + ans =
+
+ 1.
+
+-->exec('Example4.sci',0)
+Current date is 29-May-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 : 1
+
+ Chapter Title : GETTING STARTED
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Example 4 : Display all the current users in the Current Unix Session
+
+
+
+*******************************************************************
+
+ Answer :
+THE FOLLOWING LINES OF CODE RUN
+ONLY IN SCILAB INSTALLED IN UNIX ENVIRONMENT.....
+THE CONSOLE GETS EXITED IN OTHER
+ OPERATING SYSTEMS
+
+Press any key to end the script since the OS is not LinuxClose the Scilab Console?....
+y :Yes
+Any other key:No st =
+
+ n
+
+*******************************************************************
+
+-->diary('Result4.txt','close')
diff --git a/1088/CH1/EX1.4/Result4.txt b/1088/CH1/EX1.4/Result4.txt new file mode 100755 index 000000000..4ed2c97d9 --- /dev/null +++ b/1088/CH1/EX1.4/Result4.txt @@ -0,0 +1,46 @@ + ans =
+
+ 1.
+
+-->exec('Example4.sci',0)
+Current date is 29-May-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 : 1
+
+ Chapter Title : GETTING STARTED
++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Example 4 : Display all the current users in the Current Unix Session
+
+
+
+*******************************************************************
+
+ Answer :
+THE FOLLOWING LINES OF CODE RUN
+ONLY IN SCILAB INSTALLED IN UNIX ENVIRONMENT.....
+THE CONSOLE GETS EXITED IN OTHER
+ OPERATING SYSTEMS
+
+Press any key to end the script since the OS is not LinuxClose the Scilab Console?....
+y :Yes
+Any other key:No st =
+
+ n
+
+*******************************************************************
+
+-->diary('Result4.txt','close')
|