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

Mastering unix shell scripting phần 5 doc

Mastering unix shell scripting phần 5 doc

... /remd_log4bremp2_log5a jfs 1 1 1 open/syncd /remd_log5aremp2_log5b jfs 1 1 1 open/syncd /remd_log5bremp2_rbs01 jfs 47 47 1 open/syncd /remd_rbs01remp2_sys01 jfs 4 4 1 open/syncd /remd_sys01arlogs_lv jfs 35 ... 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## ... ]thenecho “\n\nERROR: This shell script cannot operate”echo “without a keyboard data file located in”echo “\n==> $KEYBOARD_FILE\n”Listing 10. 15 mk_passwd.ksh shell script listing. (continues)Creating...
  • 70
  • 575
  • 0
Mastering unix shell scripting phần 6 doc

Mastering unix shell scripting phần 6 doc

... Jun 26 20 :55 - 20 :56 (00:00)root pts/1 mrranger Jun 26 20 :55 - 20 :56 (00:00)...wtmp begins Jul 31 18:20 This report is saved in:/usr/local/reboot/sys_snapshot.yogi.07 250 2_094 658 Listing ... on/dev/hd4 32768 10924 67% 1 854 12% //dev/hd2 1449984 61680 96% 40941 12% /usr/dev/hd9var 53 248 1 056 8 81% 673 6% /var/dev/hd3 106496 70184 35% 223 1% /tmp/dev/hd1 4096 3892 5% 55 6% /home/proc - - ... Jul 23 21 :53 - 21 :53 (00:00)shutdown tty0 Jul 10 00: 25 root ftp booboo Jul 09 23:41 - 23:41 (00:00)reboot ~ Jul 09 19:38 reboot ~ Jun 27 16:07 root pts/3 mrranger Jun 26 20 :55 - 20 :56 (00:00)root...
  • 70
  • 363
  • 0
Mastering unix shell scripting phần 9 docx

Mastering unix shell scripting phần 9 docx

... 223 .54 5 332.00997 655 3The sum of: 2 + 223 .54 5 + 332.00997 655 3to a scale of 8 is 55 7 .55 497 655 3Listing 22.3 float_add.ksh shell script in action.Floating-Point Math and the bc Utility 55 5# ... /tmp/myfilename/tmp/myfilename.120601.13 150 7.03038/tmp/myfilename.120601.13 150 7. 155 93/tmp/myfilename.120601.13 150 7.11760/tmp/myfilename.120601.13 150 8.08374/tmp/myfilename.120601.13 150 8.01926/tmp/myfilename.120601.13 150 8.07238/tmp/myfilename.120601.13 150 9.0 755 4/tmp/myfilename.120601.13 150 9.12343/tmp/myfilename.120601.13 151 0.08496/tmp/myfilename.120601.13 151 0.182 85 /tmp/myfilename.120601.13 151 0.188 95 /tmp/myfilename.120601.13 151 1.16618/tmp/myfilename.120601.13 151 1.30612/tmp/myfilename.120601.13 151 1.168 65 /tmp/myfilename.120601.13 151 2.01134/tmp/myfilename.120601.13 151 2.19362/tmp/myfilename.120601.13 151 2.04287/tmp/myfilename.120601.13 151 3.10616/tmp/myfilename.120601.13 151 3.08707/tmp/myfilename.120601.13 151 3.27006/tmp/myfilename.120601.13 151 4. 158 99/tmp/myfilename.120601.13 151 4.18913/tmp/myfilename.120601.13 151 5.27120/tmp/myfilename.120601.13 151 5.23639/tmp/myfilename.120601.13 151 5.13096/tmp/myfilename.120601.13 151 6.19111/tmp/myfilename.120601.13 151 6. 059 64Listing ... /tmp/myfilename/tmp/myfilename.120601.13 150 7.03038/tmp/myfilename.120601.13 150 7. 155 93/tmp/myfilename.120601.13 150 7.11760/tmp/myfilename.120601.13 150 8.08374/tmp/myfilename.120601.13 150 8.01926/tmp/myfilename.120601.13 150 8.07238/tmp/myfilename.120601.13 150 9.0 755 4/tmp/myfilename.120601.13 150 9.12343/tmp/myfilename.120601.13 151 0.08496/tmp/myfilename.120601.13 151 0.182 85 /tmp/myfilename.120601.13 151 0.188 95 /tmp/myfilename.120601.13 151 1.16618/tmp/myfilename.120601.13 151 1.30612/tmp/myfilename.120601.13 151 1.168 65 /tmp/myfilename.120601.13 151 2.01134/tmp/myfilename.120601.13 151 2.19362/tmp/myfilename.120601.13 151 2.04287/tmp/myfilename.120601.13 151 3.10616/tmp/myfilename.120601.13 151 3.08707/tmp/myfilename.120601.13 151 3.27006/tmp/myfilename.120601.13 151 4. 158 99/tmp/myfilename.120601.13 151 4.18913/tmp/myfilename.120601.13 151 5.27120/tmp/myfilename.120601.13 151 5.23639/tmp/myfilename.120601.13 151 5.13096/tmp/myfilename.120601.13 151 6.19111/tmp/myfilename.120601.13 151 6. 059 64Listing...
  • 70
  • 370
  • 0
Mastering unix shell scripting phần 10 docx

Mastering unix shell scripting phần 10 docx

... interface ip=10.10.10.1 bcast=10.10. 255 . 255 nmask= 255 . 255 .0.0Connection to CindySue failedadded interface ip=10.10.10.1 bcast=10.10. 255 . 255 nmask= 255 . 255 .0.0Connection to Bubba failedadded ... interface ip=10.10.10.1 bcast=10.10. 255 . 255 nmask= 255 . 255 .0.0Connection to JonnyLee failedadded interface ip=10.10.10.1 bcast=10.10. 255 . 255 nmask= 255 . 255 .0.0Connection to BobbyJoe failedNotice ... ip=10.10.10.1 bcast=10.10. 255 . 255 nmask= 255 . 255 .0.0Connected. Type your message, ending it with a Control-Dsent 13 bytesadded interface ip=10.10.10.1 bcast=10.10. 255 . 255 nmask= 255 . 255 .0.0Connected....
  • 73
  • 347
  • 0
Mastering unix shell scripting phần 1 pdf

Mastering unix shell scripting phần 1 pdf

... 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 ... type of exit status 15 SIGTERM kill command’s default action24 SIGSTOP Stop, usually CONTROL-z Scripting Quick Start and Review 21Randal K. Michael Mastering Unix Shell Scripting Another thing ... Applications 251 Monitoring Local Processes 252 Remote Monitoring with Secure Shell 254 Checking for Active Oracle Databases 256 Checking If the HTTP Server/Application Is Working 259 Contents...
  • 71
  • 390
  • 0
Mastering unix shell scripting phần 2 pdf

Mastering unix shell scripting phần 2 pdf

... 0m51.87ssys 6m8 .54 sMethod 5: function while_line_LINEreal 6m50.79suser 0m36.65ssys 5m59.66sMethod 6:function while_LINE_line_bottomreal 7m20.48suser 0m51.01ssys 6m14 .57 sMethod 7:function ... 0m5.89suser 0m5.62ssys 0m0.16sMethod 3:function while_line_LINE_bottomreal 6m53.71suser 0m36.62ssys 6m2.03sMethod 4:function cat_while_LINE_linereal 7m16.87suser 0m51.87ssys 6m8 .54 sMethod ... 7 ,50 0 lines, where each line is the same length (we built this file using themk_large_file.ksh shell script). A 7 ,50 0-line file is an extremely large file to beparsing line by line in a shell...
  • 70
  • 392
  • 0
Mastering unix shell scripting phần 3 ppsx

Mastering unix shell scripting phần 3 ppsx

... /etc/mnttab/dev/dsk/c0d0s3 96 455 59 31 80879 7% /varswap 55 4132 0 55 413 0% /var/run/dev/dsk/c0d0s5 479 75 1221 41 957 3% /optswap 55 4428 296 55 4132 1% /tmp/dev/dsk/c0d0s7 10 155 42 1 954 598 1% /export/home/dev/dsk/c0d0s1 ... /usr/dev/hd9var 53 248 30824 43% 54 0 5% /var/dev/hd3 106496 99932 7% 1 35 1% /tmp/dev/hd1 4096 3916 5% 25 % /home/proc /proc/dev/hd10opt 638976 24 456 97% 154 57 10% /opt/dev/scripts_lv 102400 952 64 7% 4 35 ... ON/dev/vg00/lvol3 151 552 8 950 0 58 669 60% //dev/vg00/lvol1 47829 24109 18937 56 % /stand/dev/vg00/lvol9 1310720 860829 422636 67% /var/dev/vg00/lvol8 972800 55 4392 392 358 59 % /usr132 Chapter 5 }####################################function...
  • 70
  • 340
  • 0
Mastering unix shell scripting phần 4 ppsx

Mastering unix shell scripting phần 4 ppsx

... shell script listing. (continues)Monitoring System Load 20317: 45: 14 25 75 0 017: 45: 24 26 74 0 017: 45: 34 25 75 0 0Average 25 75 0 0Now let’s look at the average of the samples directly.# ... po fr de sr cd f0 s0 in sy cs us sy id0 0 0 55 8316 33036 57 433 2 0 0 0 0 0 0 0 0 111 50 0 77 2 8 900 0 0 55 6192 29992 387 2928 0 0 0 0 0 1 0 0 0 155 2711 273 14 60 26As with HP-UX and Linux, ... StartsRUN=$(mon_proc_start);;esacdone# End of ScriptListing 8 .5 proc_watch.ksh shell script listing. (continued)The shell script in Listing 8 .5 is a nice, modular shell script. The actual monitoringloop is the...
  • 70
  • 361
  • 0
Mastering unix shell scripting phần 7 pdf

Mastering unix shell scripting phần 7 pdf

... entry is shown here: 5, 15, 25, 35, 45, 55 * * * * /usr/sbin/lpc up all >/dev/null 2>&1This cron table entry enables all printing and queuing on all printers on the 5s, 24 hours a day, ... cron table to execute thiscommand every 10 minutes. My cron table entry is shown here: 5, 15, 25, 35, 45, 55 * * * * /usr/sbin/lpc up all >/dev/null 2>&1Table 16.4 Solaris lpc Command ... combine the shell scriptsin Listings 17.1 and 17.4. We are also going to add the functionality to add pre- andpost-ftp events. Let’s start by looking at the shell script in Listing 17 .5, get_ftp_files.ksh....
  • 70
  • 347
  • 0
Mastering unix shell scripting phần 8 potx

Mastering unix shell scripting phần 8 potx

... daemon staff 51 2 Sep 17 2000 calendardrwxr-xr-x 4 bin cron 51 2 Jul 26 2001 crondrwxrwxr-x 7 lp lp 51 2 Mar 23 15: 21 lpdrwxrwxr-x 5 bin printq 51 2 May 01 20:32 lpddrwxrwxr-x 2 bin mail 51 2 May 06 ... 34-08-5B91-04-P SSA160 Physical Disk Drivepdisk4 Available 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 ... maildrwxrwx 2 root system 51 2 May 06 17:36 mqueuedrwxrwxr-x 2 bin printq 51 2 Apr 29 11 :52 qdaemondrwxr-xr-x 2 root system 51 2 Jul 26 2001 rwhodrwxrwsrwx 2 bin staff 51 2 Jul 26 2001 secretmaildrwxr-xr-x...
  • 70
  • 355
  • 0

Xem thêm

Từ khóa: introduction to unix shell scripting pdfthuật toán mã hóa và ứng dụng phần 5 docxphần 5 đọc tục ngữlinux shell scripting tutorial a beginner’s handbook 5phần mềm đọc pdf cho iphone 5tài liệu sổ tay kỹ thuật thuỷ lợi phần 2tập 2 chương 5 docgiáo án môn tin học chương bốn chơi và học cùng máy tính bài 1 học toán với phần mềm cùng học toán 5 dochệ unix ngôn ngữ c ansi c iso c c phần 2 docđề kiểm tra giữa học kỳ 2 phần tập đọc tiếng việt 1kiểm tra giữa học kỳ 2 phần tập đọc tiếng việt 1qui luật phân li độc lậpphân li độc lậphiện tượng phân li độc lậpđề kiểm tra giữa học kỳ i phần tập đọcứng phó khi dính phần mềm độcthủ thuật máy tínhBáo cáo quy trình mua hàng CT CP Công Nghệ NPVchuyên đề điện xoay chiều theo dạngNghiê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 namMộ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 tổ chức chạy tàu hàng cố định theo thời gian trên đường sắt việt namBiện pháp quản lý hoạt động dạy hát xoan trong trường trung học cơ sở huyện lâm thao, phú thọGiá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 LPWANPhát triển mạng lưới kinh doanh nước sạch tại công ty TNHH một thành viên kinh doanh nước sạch quảng ninhNghiê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ùngTìm hiểu công cụ đánh giá hệ thống đảm bảo an toàn hệ thống thông tinThơ nôm tứ tuyệt trào phúng hồ xuân hươngThiết kế và chế tạo mô hình biến tần (inverter) cho máy điều hòa không khíKiểm sát việc giải quyết tố giác, tin báo về tội phạm và kiến nghị khởi tố theo pháp luật tố tụng hình sự Việt Nam từ thực tiễn tỉnh Bình Định (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtchuong 1 tong quan quan tri rui roNguyê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ĩ)Giáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtChiến lược marketing tại ngân hàng Agribank chi nhánh Sài Gòn từ 2013-2015TÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲ