Mastering unix shell scripting phần 9 docx
... /tmp/myfilename /tmp/myfilename.120601.131507.03038 /tmp/myfilename.120601.131507.15 593 /tmp/myfilename.120601.131507.11760 /tmp/myfilename.120601.131508.08374 /tmp/myfilename.120601.131508.0 192 6 /tmp/myfilename.120601.131508.07238 /tmp/myfilename.120601.1315 09. 07554 /tmp/myfilename.120601.1315 09. 12343 /tmp/myfilename.120601.131510.08 496 /tmp/myfilename.120601.131510.18285 /tmp/myfi...
Ngày tải lên: 09/08/2014, 16:20
... until option 99 is Selected # We use 99 as a character instead of an integer # in case a user enters a non-integer selection, # which would cause the script to fail. while [[ $OPT != 99 ]] do # ... that make up the broadcast.ksh shell script, let’s look at the whole shell script and see how the pieces fit together. The entire shell script is shown in Listing 25 .9. Please pay particu...
Ngày tải lên: 09/08/2014, 16:20
... vmstat 191 AIX 191 HP-UX 191 Linux 192 Solaris 192 What Is the Common Denominator? 192 Scripting the Solutions 193 Using uptime to Measure the System Load 194 Scripting with the uptime Command 194 Using ... 384 Using sudo in a Shell Script 385 The sudo Log File 3 89 Summary 390 Chapter 15 hgrep: Highlighted grep Script 391 Reverse Video Control 392 Building the hgrep.ksh She...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 2 pdf
... ‘OCTAL_OR_POSITIVE_INTEGER’ ;; +([0 -9] )) # Check for an integer print ‘INTEGER’ ;; +([-0 -9] )) # Check for a negative whole number print ‘NEGATIVE_WHOLE_NUMBER’ ;; +([0 -9] |[.][0 -9] )) 48 Chapter 1 # # REV LIST: # # 02/ 19/ 2002 ... > STRING STRING=$1 # This is where the string test begins case $STRING in +([0 -9] ).+([0 -9] ).+([0 -9] ).+([0 -9] )) # Testing for an IP address - valid...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 3 ppsx
... 4 190 208 1155 095 2850 597 29% /u2 /dev/vg00/lvol7 102400 4284 92 256 4% /tmp /dev/vg00/lvol13 20 398 08 1664073 352 294 83% /test2 /dev/vg00/lvol6 720 896 531 295 17 795 3 75% /opt /dev/vg00/lvol5 4 096 00 ... ON /dev/vg00/lvol3 151552 895 00 586 69 60% / /dev/vg00/lvol1 478 29 241 09 1 893 7 56% /stand /dev/vg00/lvol9 1310720 8608 29 422636 67% /var /dev/vg00/lvol8 97 2800 554 392 39...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 4 ppsx
... 07/31/02 19: 24:00 %usr %sys %wio %idle 19: 24:30 0 1 1 98 19: 25:00 4 15 13 68 19: 25:30 26 28 40 6 19: 26:00 13 12 11 64 19: 26:30 16 44 0 39 19: 27:00 27 73 0 0 19: 27:30 20 48 2 30 19: 28:00 5 6 9 80 19: 28:30 ... (bambam) 07/ 29/ 2002 10:01: 59 PM CPU %user %nice %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...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 5 doc
... Error\n” ;; esac done < $URLFILE fi rm -f $URLFILE } Listing 9. 9 check_HTTP_server function listing. (continued) This is a nice function in Listing 9. 9 for checking the status of a Web server and also to ... shown in List- ing 9. 8, with the output of the query; however, the Oracle Listener is not tested as in the previous sqlplus statement in Listing 9. 7. The sqlplus command in Lis...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 6 doc
... on /dev/hd4 32768 1 092 4 67% 1854 12% / /dev/hd2 14 499 84 61680 96 % 4 094 1 12% /usr /dev/hd9var 53248 10568 81% 673 6% /var /dev/hd3 106 496 70184 35% 223 1% /tmp /dev/hd1 4 096 3 892 5% 55 6% /home /proc ... 24 crw-rw-rw- 1 root system 19, 0 Jun 23 15:23 rmt0 crw-rw-rw- 1 root system 19, 1 Mar 29 13: 49 rmt0.1 crw-rw-rw- 1 root system 19, 2 Jul 26 2001 rmt0.2 crw-rw-rw- 1 root system...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 7 pdf
... new shell script. Let’s call this shell script printing_only_UP_Linux.ksh. You can see the modifications in Listing 16 .9. #!/bin/ksh # # SCRIPT: printing_only_UP_Linux.ksh # Listing 16 .9 printing_only_UP_Linux.ksh ... Printers Printing 4 29 You could also modify the shell script in Listing 16.8 to add a command-line parame- ter to let you control queuing and printing individually f...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 8 potx
... 24-08-5B91- 09- P SSA160 Physical Disk Drive pdisk9 Available 24-08-5B91-10-P SSA160 Physical Disk Drive pdisk10 Available 24-08-5B91-11-P SSA160 Physical Disk Drive pdisk11 Available 24-08-5B91-12-P ... 34-08-5B91-01-P SSA160 Physical Disk Drive pdisk1 Available 34-08-5B91-02-P SSA160 Physical Disk Drive pdisk2 Available 34-08-5B91-03-P SSA160 Physical Disk Drive pdisk3 Available 34-08-5B91-...
Ngày tải lên: 09/08/2014, 16:20