0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Kỹ thuật lập trình >

Mastering unix shell scripting phần 9 docx

Mastering unix shell scripting phần 9 docx

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/myfilename.120601.131510.18 895 /tmp/myfilename.120601.131511.16618/tmp/myfilename.120601.131511.30612/tmp/myfilename.120601.131511.16865/tmp/myfilename.120601.131512.01134/tmp/myfilename.120601.131512. 193 62/tmp/myfilename.120601.131512.04287/tmp/myfilename.120601.131513.10616/tmp/myfilename.120601.131513.08707/tmp/myfilename.120601.131513.27006/tmp/myfilename.120601.131514.15 899 /tmp/myfilename.120601.131514.1 891 3/tmp/myfilename.120601.131515.27120/tmp/myfilename.120601.131515.236 39 /tmp/myfilename.120601.131515.13 096 /tmp/myfilename.120601.131516. 191 11/tmp/myfilename.120601.131516.0 596 4Listing ... [root:yogi]@/scripts# ./float_add.ksh -s 8 2 223.545 332.0 099 76553The sum of: 2 + 223.545 + 332.0 099 76553to a scale of 8 is 557.55 497 6553Listing 22.3 float_add.ksh shell script in action.Floating-Point Math ... do nothing;;+(+[0 -9] |[.][0 -9] ))# Check for a positive floating point number# with a + prefix: # No-op, do nothing;;+([-0 -9] |.[0 -9] ))Listing 22.4 float_subtract.ksh shell script listing....
  • 70
  • 370
  • 0
Mastering unix shell scripting phần 10 docx

Mastering unix shell scripting phần 10 docx

... 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 thebroadcast.ksh shell script, let’s look at the whole shell script and see how the piecesfit together. The entire shell script is shown in Listing 25 .9. Please pay particular atten-tion ... 24operations_menu.ksh: Shell script menu for an Operations staff.Chaper 25broadcast.ksh: Shell script to send pop-up messages to Windows desktops. This shell script requiresSamba to be installed on the UNIX...
  • 73
  • 347
  • 0
Mastering unix shell scripting phần 1 pdf

Mastering unix shell scripting phần 1 pdf

... 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 ... 384Using sudo in a Shell Script 385The sudo Log File 3 89 Summary 390 Chapter 15 hgrep: Highlighted grep Script 391 Reverse Video Control 392 Building the hgrep.ksh Shell Script 393 Other Options ... xixChapter 1 Scripting Quick Start and Review 1Case Sensitivity 1 Unix Special Characters 2Shells 2 Shell Scripts 2Functions 2A Function Has the Form 3Running a Shell Script 3Declare the Shell...
  • 71
  • 390
  • 0
Mastering unix shell scripting phần 2 pdf

Mastering unix shell scripting phần 2 pdf

... ‘OCTAL_OR_POSITIVE_INTEGER’;;+([0 -9] )) # Check for an integerprint ‘INTEGER’;;+([-0 -9] )) # Check for a negative whole numberprint ‘NEGATIVE_WHOLE_NUMBER’;;+([0 -9] |[.][0 -9] ))48 Chapter 1## REV LIST:## 02/ 19/ 2002 ... > STRINGSTRING=$1# This is where the string test beginscase $STRING in+([0 -9] ).+([0 -9] ).+([0 -9] ).+([0 -9] ))# Testing for an IP address - valid and invalidINVALID=FALSE# Separate the ... ]]thenecho “\nINVALID INPUT ==> $1 EXITING \n”usageexit 1fi# Check for a valid range 1 - 99 99 if (( $1 > 0 && $1 < 10000 ))thenS=$1 # Total second to start the countdown...
  • 70
  • 392
  • 0
Mastering unix shell scripting phần 3 ppsx

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 392 358 59% /usr132 Chapter 5}####################################function ... 43% 540 5% /var/dev/hd3 106 496 99 932 7% 135 1% /tmp/dev/hd1 4 096 391 6 5% 25 % /home/proc /proc/dev/hd10opt 63 897 6 24456 97 % 15457 10% /opt/dev/scripts_lv 102400 95 264 7% 435 2% /scripts/dev/cd0...
  • 70
  • 340
  • 0
Mastering unix shell scripting phần 4 ppsx

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/ 200210:01: 59 PM CPU %user %nice %system %idle10: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.6010:02: 39 PM all 60.80 ... f0 s0 in sy cs us sy id0 0 0 558316 33036 57 433 2 0 0 0 0 0 0 0 0 111 500 77 2 8 90 0 0 0 556 192 299 92 387 292 8 0 0 0 0 0 1 0 0 0 155 2711 273 14 60 26As with HP-UX and Linux, the Solaris vmstat...
  • 70
  • 361
  • 0
Mastering unix shell scripting phần 5 doc

Mastering unix shell scripting phần 5 doc

... Error\n”;;esacdone < $URLFILEfirm -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 alsoto ... shown in List-ing 9. 8, with the output of the query; however, the Oracle Listener is not tested as in theprevious sqlplus statement in Listing 9. 7. The sqlplus command in Listing 9. 8 shouldbe run ... variable. For shell variables you must use the shell notation here, too. Ifthe number of arguments on the command line exceeds three, then we display theusage function and exit the shell script...
  • 70
  • 575
  • 0
Mastering unix shell scripting phần 6 doc

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 ... 24crw-rw-rw- 1 root system 19, 0 Jun 23 15:23 rmt0crw-rw-rw- 1 root system 19, 1 Mar 29 13: 49 rmt0.1crw-rw-rw- 1 root system 19, 2 Jul 26 2001 rmt0.2crw-rw-rw- 1 root system 19, 3 Jul 26 2001 rmt0.3crw-rw-rw- ... 112330 0 108 697 0 0en0 1500 10.10 yogi 112330 0 108 697 0 0lo0 16 896 link#1 28302 0 28304 0 0lo0 16 896 127 loopback 28302 0 28304 0 0lo0 16 896 ::1 28302 0 28304 0 0#################################################Filesystem...
  • 70
  • 363
  • 0
Mastering unix shell scripting phần 7 pdf

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 themodifications 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 from the same shell script. I amgoing ... TogetherNow we need to combine the shell scripts for each of the different Unix flavors so thatone script does it all. Please do not think that taking several shell scripts, making func-tions...
  • 70
  • 347
  • 0
Mastering unix shell scripting phần 8 potx

Mastering unix shell scripting phần 8 potx

... 24-08-5B91- 09- P SSA160 Physical Disk Drivepdisk9 Available 24-08-5B91-10-P SSA160 Physical Disk Drivepdisk10 Available 24-08-5B91-11-P SSA160 Physical Disk Drivepdisk11 Available 24-08-5B91-12-P ... 34-08-5B91-01-P SSA160 Physical Disk Drivepdisk1 Available 34-08-5B91-02-P SSA160 Physical Disk Drivepdisk2 Available 34-08-5B91-03-P SSA160 Physical Disk Drivepdisk3 Available 34-08-5B91-04-P ... 24-08-5B91-05-P SSA160 Physical Disk Drivepdisk5 Available 24-08-5B91-07-P SSA160 Physical Disk Drivepdisk6 Available 24-08-5B91-06-P SSA160 Physical Disk Drivepdisk7 Available 24-08-5B91-08-P...
  • 70
  • 355
  • 0

Xem thêm

Từ khóa: bash bourne and korn shell scripting for programmers system administrators and unix gurus second editionlinux shell scripting cookbookviệt nam sử lược phần 9 24 quy tac hoc kanji phần 9beginning shell scriptinglinux shell scripting cookbook by sarath lakshmanlinux shell scripting cookbook sarath lakshman pdflinux shell scripting cookbook free downloadlinux shell scripting cookbook 2nd editionlinux shell scripting cookbook 2nd edition pdflinux shell scripting cookbook second edition pdflinux shell scripting cookbook pdflinux shell scripting cookbook second editionlinux shell scripting cookbook free download pdfkiến thức cơ bản về mạng phần 9Báo cáo thực tập tại nhà thuốc tại Thành phố Hồ Chí Minh năm 2018Nghiên cứu sự hình thành lớp bảo vệ và khả năng chống ăn mòn của thép bền thời tiết trong điều kiện khí hậu nhiệt đới việt namNghiên cứu tổ chức pha chế, đánh giá chất lượng thuốc tiêm truyền trong điều kiện dã ngoạiNghiên cứu tổ hợp chất chỉ điểm sinh học vWF, VCAM 1, MCP 1, d dimer trong chẩn đoán và tiên lượng nhồi máu não cấpNghiên cứu vật liệu biến hóa (metamaterials) hấp thụ sóng điện tử ở vùng tần số THzGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitĐỒ ÁN NGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWANNGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWAN SLIDETrả hồ sơ điều tra bổ sung đối với các tội xâm phạm sở hữu có tính chất chiếm đoạt theo pháp luật Tố tụng hình sự Việt Nam từ thực tiễn thành phố Hồ Chí Minh (Luận văn thạc sĩ)Phát hiện xâm nhập dựa trên thuật toán k meansNghiên cứu, xây dựng phần mềm smartscan và ứng dụng trong bảo vệ mạng máy tính chuyên dùngThơ nôm tứ tuyệt trào phúng hồ xuân hươngSở hữu ruộng đất và kinh tế nông nghiệp châu ôn (lạng sơn) nửa đầu thế kỷ XIXTranh tụng tại phiên tòa hình sự sơ thẩm theo pháp luật tố tụng hình sự Việt Nam từ thực tiễn xét xử của các Tòa án quân sự Quân khu (Luận văn thạc sĩ)Nguyên tắc phân hóa trách nhiệm hình sự đối với người dưới 18 tuổi phạm tội trong pháp luật hình sự Việt Nam (Luận văn thạc sĩ)BÀI HOÀN CHỈNH TỔNG QUAN VỀ MẠNG XÃ HỘIMÔN TRUYỀN THÔNG MARKETING TÍCH HỢPTÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲ