Mastering Unix Shell Scripting phần 10 potx

Mastering Unix Shell Scripting phần 10 potx

Mastering Unix Shell Scripting phần 10 potx

... 2. equate_base_2_to _10. ksh: Converts numbers from base 2 to base 10. equate_base _10_ to_8.ksh: Converts numbers from base 10 to base 8. equate_base_8_to _10. ksh: Converts numbers from base 8 to base 10. Chapter ... interface ip =10. 10 .10. 1 bcast =10. 10.255.255 nmask=255.255.0.0 Connected. Type your message, ending it with a Control-D sent 45 bytes Sent OK ==> booboo Listin...

Ngày tải lên: 14/08/2014, 16:20

65 271 0
Mastering unix shell scripting phần 8 potx

Mastering unix shell scripting phần 8 potx

... main body of the shell script. The Full Shell Script This is a good point to show the entire shell script and go through the details at the end of the listing. The SSAidentify.ksh shell script is ... PLATFOEM: Any Unix # # PURPOSE: This shell script is used to capture all “$EFF_USER” # access by capturing all of the terminal data in a log # file using the script command. This sh...

Ngày tải lên: 09/08/2014, 16:20

70 355 0
Mastering unix shell scripting phần 10 docx

Mastering unix shell scripting phần 10 docx

... a problem, Houston! added interface ip =10. 10 .10. 1 bcast =10. 10.255.255 nmask=255.255.0.0 timeout connecting to 10. 10 .10. 4:139 Error connecting to 10. 10 .10. 4 (Operation already in progress) Connection ... progress) Connection to JohnB failed added interface ip =10. 10 .10. 1 bcast =10. 10.255.255 nmask=255.255.0.0 Connection to CindySue failed added interface ip =10. 10 .10. 1 bca...

Ngày tải lên: 09/08/2014, 16:20

73 347 0
Mastering Unix Shell Scripting phần 3 potx

Mastering Unix Shell Scripting phần 3 potx

... Command Output MOUNTED FILESYSTEM 1K-BLOCKS USED AVAILABLE USE% ON /dev/hda16 101 089 32949 62921 34% / /dev/hda5 101 1928 104 960420 0% /backup /dev/hda1 54416 2647 48960 5% /boot /dev/hda8 202220 ... variables need to be multiplied by 102 4 blocks (( MIN_MB_FREE = $(echo $MIN_MB_FREE | sed s/MB//g) * 102 4 )) (( FSTRIGGER = $(echo $FSTRIGGER | sed s/MB//g) * 102 4 )) ################...

Ngày tải lên: 14/08/2014, 16:20

71 241 0
Mastering Unix Shell Scripting phần 8 potx

Mastering Unix Shell Scripting phần 8 potx

... -al total 13 drwxrwx 2 bin cron 512 Feb 10 21:36 . drwxr-xr-x 4 bin cron 512 Jul 26 2001 -rw-r r 1 adm cron 2027 Feb 10 21:36 adm -rw 1 root cron 1125 Feb 10 21:35 root -rw-r r 1 sys cron 864 Jul ... 1.0.P # PLATFOEM: Any Unix # # PURPOSE: This shell script is used to monitor a login session by # capturing all of the terminal data in a log file using # the script command. This she...

Ngày tải lên: 14/08/2014, 16:20

71 261 0
Mastering unix shell scripting phần 1 pdf

Mastering unix shell scripting phần 1 pdf

... xix Chapter 1 Scripting Quick Start and Review 1 Case Sensitivity 1 Unix Special Characters 2 Shells 2 Shell Scripts 2 Functions 2 A Function Has the Form 3 Running a Shell Script 3 Declare the Shell ... Stop, usually CONTROL-z Scripting Quick Start and Review 21 Randal K. Michael Mastering Unix Shell Scripting Another thing to note is that all of the variables used in the...

Ngày tải lên: 09/08/2014, 16:20

71 390 0
Mastering unix shell scripting phần 2 pdf

Mastering unix shell scripting phần 2 pdf

... monitoring shell scripts and there is a failure, success, or request, we need a method of getting a message to the right people. There are really three main strategies of notification in shell scripts. ... 0m52.01s sys 6m10.94s Method 8: function while_LINE_line_bottom_cmdsub2 real 7m20.34s Listing 2.17 Timing data for each loop method. (continued) 74 Chapter 2 53 Have you ever created a...

Ngày tải lên: 09/08/2014, 16:20

70 392 0
Mastering unix shell scripting phần 3 ppsx

Mastering unix shell scripting phần 3 ppsx

... 3916 5% 25 % /home /proc /proc /dev/hd10opt 638976 24456 97% 15457 10% /opt /dev/scripts_lv 102 400 95264 7% 435 2% /scripts /dev/cd0 656756 0 100 % 328378 100 % /cdrom 130 Chapter 5 Table 5.8 (Continued) FILESYSTEM ... variables need to be multiplied by 102 4 blocks (( MIN_MB_FREE = $(echo $MIN_MB_FREE | sed s/MB//g) * 102 4 )) (( FSTRIGGER = $(echo $FSTRIGGER | sed s/MB//g) * 102 4 )...

Ngày tải lên: 09/08/2014, 16:20

70 340 0
Mastering unix shell scripting phần 4 ppsx

Mastering unix shell scripting phần 4 ppsx

... %system %idle 10: 02:09 PM all 0 .10 0.00 0.00 99.90 10: 02:19 PM all 0.00 0.00 0 .10 99.90 10: 02:29 PM all 11.40 0.00 5.00 83.60 10: 02:39 PM all 60.80 0.00 36.30 2.90 Average: all 18.07 0.00 10. 35 71.58 Now ... at the average of the samples directly. # sar 10 4 | grep Average Average 26 74 0 0 HP-UX # sar 10 4 HP-UX dino B .10. 20 A 9000/715 07/29 /102 22:48 :10 %usr %sys %wi...

Ngày tải lên: 09/08/2014, 16:20

70 361 0
Mastering unix shell scripting phần 5 doc

Mastering unix shell scripting phần 5 doc

... create the mk_passwd.ksh shell script. The entire shell script is shown in Listing 10. 15. Pay particular attention to the boldface text throughout the mk_passwd.ksh shell script. #!/usr/bin/ksh # # ... array Listing 10. 15 mk_passwd.ksh shell script listing. (continued) 292 Chapter 10 X=0 while ((X < LENGTH)) do # Build the list here ((X = X + 1)) echo “$X “ done ) Listing 1...

Ngày tải lên: 09/08/2014, 16:20

70 575 0
Từ khóa:
w