From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1088/CH1/EX1.4/Example4.sce | 22 ++++++++++++++++++++++ 1088/CH1/EX1.4/Result4.pdf | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1088/CH1/EX1.4/Result4.txt | 46 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100755 1088/CH1/EX1.4/Example4.sce create mode 100755 1088/CH1/EX1.4/Result4.pdf create mode 100755 1088/CH1/EX1.4/Result4.txt (limited to '1088/CH1/EX1.4') 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') -- cgit