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 6 doc

Mastering unix shell scripting phần 6 doc

Mastering unix shell scripting phần 6 doc

... on/dev/hd4 32 768 10924 67 % 1854 12% //dev/hd2 1449984 61 680 96% 40941 12% /usr/dev/hd9var 53248 10 568 81% 67 3 6% /var/dev/hd3 1 064 96 70184 35% 223 1% /tmp/dev/hd1 40 96 3892 5% 55 6% /home/proc ... /home/proc - - - - - /proc/dev/hd10opt 65 5 360 164 60 98% 162 60 10% /opt/dev/scripts_lv 102400 252 96 76% 887 4% /scripts/dev/lv_temp 40 960 0 3504 56 15% 26 1% /tmpfsnode mounted mounted over vfs ... Collen0 1500 link#2 2 .60 .8c.2d.75.b1 112330 0 10 869 7 0 0en0 1500 10.10 yogi 112330 0 10 869 7 0 0lo0 168 96 link#1 28302 0 28304 0 0lo0 168 96 127 loopback 28302 0 28304 0 0lo0 168 96 ::1 28302 0 28304...
  • 70
  • 363
  • 0
Mastering unix shell scripting phần 5 doc

Mastering unix shell scripting phần 5 doc

... open/syncd /usr/ar/logsremp2_usr01 jfs 6 6 1 open/syncd /remd_usr01rootvg:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINThd5 boot 1 2 2 closed/syncd N/Ahd6 paging 80 160 2 open/syncd N/Ahd8 jfslog ... 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 ... create the mk_passwd.ksh shell script. The entire shell script is shown in Listing 10.15. Pay particular attention to the boldface textthroughout the mk_passwd.ksh shell script. #!/usr/bin/ksh##...
  • 70
  • 575
  • 0
Mastering unix shell scripting phần 9 docx

Mastering unix shell scripting phần 9 docx

... iteration:ADD=”12”ADD=”12 + 453. 766 ”ADD=”12 + 453. 766 + 223 .6 ADD=”12 + 453. 766 + 223 .6 + 3.145927”ADD=”12 + 453. 766 + 223 .6 + 3.145927 + 22”Using a Here DocumentWhen the looping finishes ... /tmp/myfilename/tmp/myfilename.12 060 1.131507.03038/tmp/myfilename.12 060 1.131507.15593/tmp/myfilename.12 060 1.131507.11 760 /tmp/myfilename.12 060 1.131508.08374/tmp/myfilename.12 060 1.131508.019 26 /tmp/myfilename.12 060 1.131508.07238/tmp/myfilename.12 060 1.131509.07554/tmp/myfilename.12 060 1.131509.12343/tmp/myfilename.12 060 1.131510.084 96 /tmp/myfilename.12 060 1.131510.18285/tmp/myfilename.12 060 1.131510.18895/tmp/myfilename.12 060 1.131511. 166 18/tmp/myfilename.12 060 1.131511.3 061 2/tmp/myfilename.12 060 1.131511. 168 65/tmp/myfilename.12 060 1.131512.01134/tmp/myfilename.12 060 1.131512.19 362 /tmp/myfilename.12 060 1.131512.04287/tmp/myfilename.12 060 1.131513.1 061 6/tmp/myfilename.12 060 1.131513.08707/tmp/myfilename.12 060 1.131513.270 06 /tmp/myfilename.12 060 1.131514.15899/tmp/myfilename.12 060 1.131514.18913/tmp/myfilename.12 060 1.131515.27120/tmp/myfilename.12 060 1.131515.2 363 9/tmp/myfilename.12 060 1.131515.130 96 /tmp/myfilename.12 060 1.1315 16. 19111/tmp/myfilename.12 060 1.1315 16. 05 964 Listing ... /tmp/myfilename/tmp/myfilename.12 060 1.131507.03038/tmp/myfilename.12 060 1.131507.15593/tmp/myfilename.12 060 1.131507.11 760 /tmp/myfilename.12 060 1.131508.08374/tmp/myfilename.12 060 1.131508.019 26 /tmp/myfilename.12 060 1.131508.07238/tmp/myfilename.12 060 1.131509.07554/tmp/myfilename.12 060 1.131509.12343/tmp/myfilename.12 060 1.131510.084 96 /tmp/myfilename.12 060 1.131510.18285/tmp/myfilename.12 060 1.131510.18895/tmp/myfilename.12 060 1.131511. 166 18/tmp/myfilename.12 060 1.131511.3 061 2/tmp/myfilename.12 060 1.131511. 168 65/tmp/myfilename.12 060 1.131512.01134/tmp/myfilename.12 060 1.131512.19 362 /tmp/myfilename.12 060 1.131512.04287/tmp/myfilename.12 060 1.131513.1 061 6/tmp/myfilename.12 060 1.131513.08707/tmp/myfilename.12 060 1.131513.270 06 /tmp/myfilename.12 060 1.131514.15899/tmp/myfilename.12 060 1.131514.18913/tmp/myfilename.12 060 1.131515.27120/tmp/myfilename.12 060 1.131515.2 363 9/tmp/myfilename.12 060 1.131515.130 96 /tmp/myfilename.12 060 1.1315 16. 19111/tmp/myfilename.12 060 1.1315 16. 05 964 Listing...
  • 70
  • 370
  • 0
Mastering unix shell scripting phần 10 docx

Mastering unix shell scripting phần 10 docx

... base 16. equate_base_ 16_ to_2.ksh: Converts numbers from base 16 to base 2.What’s On the Web Site 65 5equate_base_10_to_ 16. ksh: Converts numbers from base 10 to base 16. equate_base_ 16_ to_10.ksh: ... at 160 0 characters ( 160 0 bytes), which should not be anissue for a pop-up message. If the message is long, then an email is more appropriate.Sending Pop-Up Messages from Unix to Windows 62 9}############################################################ ... 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

... 61 1From the Top 61 6Other Options to Consider 61 7Shelling Out to the Command Line 61 8Good Candidate for Using sudo 61 8Summary 61 8Chapter 25 Sending Pop-Up Messages from Unix to Windows 61 9About ... of Main 60 6Other Options to Consider 60 8Software Key Shell Script 60 8Summary 60 8Chapter 24 Menu Program Suitable for Operations Staff 60 9Reverse Video Syntax 61 0Creating the Menu 61 0Creating ... Command Line 60 2Example 23.5 Correct Usage of the Equate_any_base.ksh Shell Script 60 3Example 23 .6 Incorrect Usage of the Equate_any_base.ksh Shell Script 60 3Continuing with the Script 60 4Beginning...
  • 71
  • 390
  • 0
Mastering unix shell scripting phần 2 pdf

Mastering unix shell scripting phần 2 pdf

... 0m5.89suser 0m5 .62 ssys 0m0.16sMethod 3:function while_line_LINE_bottomreal 6m53.71suser 0m 36. 62ssys 6m2.03sMethod 4:function cat_while_LINE_linereal 7m 16. 87suser 0m51.87ssys 6m8.54sMethod ... 6m8.54sMethod 5:function while_line_LINEreal 6m50.79suser 0m 36. 65ssys 5m59 .66 sMethod 6: function while_LINE_line_bottomreal 7m20.48suser 0m51.01ssys 6m14.57sMethod 7:function while_LINE_line_cmdsub2real ... Method 4:function cat_while_LINE_linereal 7m 16. 87suser 0m51.87ssys 6m8.54sMethod 7:function while_LINE_line_cmdsub2real 7m18.04suser 0m52.01ssys 6m10.94sListing 2.22 Command substitution...
  • 70
  • 392
  • 0
Mastering unix shell scripting phần 3 ppsx

Mastering unix shell scripting phần 3 ppsx

... ON/dev/hd4 32 768 163 76 51% 166 3 11% //dev/hd2 12124 16 57592 96% 363 86 13% /usr/dev/hd9var 53248 30824 43% 540 5% /var/dev/hd3 1 064 96 99932 7% 135 1% /tmp/dev/hd1 40 96 39 16 5% 25 % /home/proc ... /u2/dev/vg00/lvol7 102400 4284 922 56 4% /tmp/dev/vg00/lvol13 2039808 166 4073 352294 83% /test2/dev/vg00/lvol6 7208 96 531295 177953 75% /opt/dev/vg00/lvol5 40 960 0 225 464 1 766 63 56% /homeTable 5.9 HP-UX ... 40 96 39 16 5% 25 % /home/proc /proc/dev/hd10opt 63 89 76 244 56 97% 15457 10% /opt/dev/scripts_lv 102400 95 264 7% 435 2% /scripts/dev/cd0 65 67 56 0 100% 328378 100% /cdrom130 Chapter 5Table 5.8...
  • 70
  • 340
  • 0
Mastering unix shell scripting phần 4 ppsx

Mastering unix shell scripting phần 4 ppsx

... $INTERVALAIX yogi 1 5 00012 560 4800 07/31/0219:24:00 %usr %sys %wio %idle19:24:30 0 1 1 9819: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 3919:27:00 27 73 0 019:27:30 ... the Unix operating system that this shell script is# executing on. Different Unix flavors have differing# outputs and the fields vary too.## REV LIST:##Listing 7.10 iostat_loadmon.ksh shell ... cpur b w swpd free buff cache si so bi bo in cs us sy id2 0 0 244 1088 167 6 21008 0 0 1 0 127 72 1 1 993 0 0 244 1132 167 6 21008 0 0 0 1 212 530 37 23 40Like HP-UX, the Linux vmstat output for...
  • 70
  • 361
  • 0
Mastering unix shell scripting phần 7 pdf

Mastering unix shell scripting phần 7 pdf

... LINEdoP=$(echo $LINE | awk ‘{print $2}’)lpc start $PdoneListing 16. 6 Scripting the lpstat command using -a and -p.Notice in Listing 16. 6 that we have to work on the print queues and printers sepa-rately, ... statuscase $PSTATUS inListing 16. 14 PQ_all_in_one.ksh shell script listing. (continued)432 Chapter 16 I want to point out a nice little trick in the shell script in Listing 16. 7. In both of theif then ... a 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...
  • 70
  • 347
  • 0
Mastering unix shell scripting phần 8 potx

Mastering unix shell scripting phần 8 potx

... 24-08-5B91-05-P SSA 160 Physical Disk Drivepdisk5 Available 24-08-5B91-07-P SSA 160 Physical Disk Drivepdisk6 Available 24-08-5B91- 06- P SSA 160 Physical Disk Drivepdisk7 Available 24-08-5B91-08-P SSA 160 Physical ... 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 26 2001 sysListing 19.1 ... 512 Jul 26 2001 crondrwxrwxr-x 7 lp lp 512 Mar 23 15:21 lpdrwxrwxr-x 5 bin printq 512 May 01 20:32 lpddrwxrwxr-x 2 bin mail 512 May 06 17: 36 maildrwxrwx 2 root system 512 May 06 17: 36 mqueuedrwxrwxr-x...
  • 70
  • 355
  • 0

Xem thêm

Từ khóa: Nghiên cứu sự biến đổi một số cytokin ở bệnh nhân xơ cứng bì hệ thốngBáo cáo quy trình mua hàng CT CP Công Nghệ NPVchuyên đề điện xoay chiều theo dạngMột số giải pháp nâng cao chất lượng streaming thích ứng video trên nền giao thức HTTPNghiê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ố THzđề thi thử THPTQG 2019 toán THPT chuyên thái bình lần 2 có lời giảiGiá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ôitNGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWAN SLIDEPhối hợp giữa phòng văn hóa và thông tin với phòng giáo dục và đào tạo trong việc tuyên truyền, giáo dục, vận động xây dựng nông thôn mới huyện thanh thủy, tỉnh phú thọNghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chú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ỷ XIXTổ chức và hoạt động của Phòng Tư pháp từ thực tiễn tỉnh Phú Thọ (Luận văn thạc sĩ)Tăng trưởng tín dụng hộ sản xuất nông nghiệp tại Ngân hàng Nông nghiệp và Phát triển nông thôn Việt Nam chi nhánh tỉnh Bắc Giang (Luận văn thạc sĩ)Tranh 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ĩ)Giáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtTrách nhiệm của người sử dụng lao động đối với lao động nữ theo pháp luật lao động Việt Nam từ thực tiễn các khu công nghiệp tại thành phố Hồ Chí Minh (Luận văn thạc sĩ)TÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲQUẢN LÝ VÀ TÁI CHẾ NHỰA Ở HOA KỲ