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 7 pdf

Mastering unix shell scripting phần 7 pdf

Mastering unix shell scripting phần 7 pdf

... 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. ... option isshown here:# lpstat -ahp4 accepting requests since May 07 07: 02 2002yogi_hp4_1ps accepting requests since May 07 07: 02 2002Listing 16.12 lpstat -a and lpstat -p command output. (continues)Print ... auto_ftp_xfer.ksh200 PORT command successful.150 ASCII data connection for auto_ftp_xfer.ksh (10.10.10.1,3 278 7) (2 27 bytes).226 ASCII Transfer complete.246 bytes received in 0.0229 seconds (10.49 Kbytes/s)local:...
  • 70
  • 347
  • 0
Mastering unix shell scripting phần 1 pdf

Mastering unix shell scripting phần 1 pdf

... Space Monitor 169Other Options to Consider 176 Event Notification 177 Log File 177 Scheduled Monitoring 177 Summary 177 Chapter 7 Monitoring System Load 179 Syntax 180Syntax for uptime 180AIX 180HP-UX ... Stop, usually CONTROL-z Scripting Quick Start and Review 21Randal K. Michael Mastering Unix Shell Scripting Another thing to note is that all of the variables used in the shell scripts and func-tions ... exist.Running a Shell ScriptA shell script can be executed in the following ways:ksh shell_ script_namewill create a Korn shell and execute the shell_ script_name in the newly createdKorn shell environment. shell_ script_namewill...
  • 71
  • 390
  • 0
Mastering unix shell scripting phần 2 pdf

Mastering unix shell scripting phần 2 pdf

... $(command). Method 4:function cat_while_LINE_linereal 7m16.87suser 0m51.87ssys 6m8.54sMethod 7: function while_LINE_line_cmdsub2real 7m18.04suser 0m52.01ssys 6m10.94sListing 2.22 Command ... while_line_LINE_bottomreal 6m53 .71 suser 0m36.62ssys 6m2.03sMethod 4:function cat_while_LINE_linereal 7m16.87suser 0m51.87ssys 6m8.54sMethod 5:function while_line_LINEreal 6m50 .79 suser 0m36.65ssys ... while_LINE_line_bottomreal 7m20.48suser 0m51.01ssys 6m14.57sMethod 7: function while_LINE_line_cmdsub2real 7m18.04suser 0m52.01ssys 6m10.94sMethod 8:function while_LINE_line_bottom_cmdsub2real 7m20.34sListing...
  • 70
  • 392
  • 0
Mastering unix shell scripting phần 3 ppsx

Mastering unix shell scripting phần 3 ppsx

... 28505 97 29% /u2/dev/vg00/lvol7 102400 4284 92256 4% /tmp/dev/vg00/lvol13 2039808 1664 073 352294 83% /test2/dev/vg00/lvol6 72 0896 531295 177 953 75 % /opt/dev/vg00/lvol5 409600 225464 176 663 ... /var/run/dev/dsk/c0d0s5 479 75 1221 419 57 3% /optswap 554428 296 554132 1% /tmp/dev/dsk/c0d0s7 1015542 1 954598 1% /export/home/dev/dsk/c0d0s1 375 255 214843 1228 87 64% /usr/openwinTable 5 .7 SUN/Solaris ... 3916 5% 25 % /home/proc /proc/dev/hd10opt 638 976 24456 97% 154 57 10% /opt/dev/scripts_lv 102400 95264 7% 435 2% /scripts/dev/cd0 65 675 6 0 100% 328 378 100% /cdrom130 Chapter 5Table 5.8 (Continued)FILESYSTEM...
  • 70
  • 340
  • 0
Mastering unix shell scripting phần 4 ppsx

Mastering unix shell scripting phần 4 ppsx

... System Load 203 17: 45:14 25 75 0 0 17: 45:24 26 74 0 0 17: 45:34 25 75 0 0Average 25 75 0 0Now let’s look at the average of the samples directly.# sar 10 4 | grep AverageAverage 26 74 0 0HP-UX# ... ./proc_wait.ksh xcalcWAITING for xcalc to start Thu Sep 27 21:11: 47 EDT 2001xcalc has Started Execution Thu Sep 27 21:11:55 EDT 2001root 2 677 2 178 66 13 21:11:54 pts/6 0:00 xcalcListing 8.2 proc_wait.ksh ... cd 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 900 0 0 556192 29992 3 87 2928 0 0 0 0 0 1 0 0 0 155 271 1 273 14 60 26As with HP-UX and Linux, the Solaris...
  • 70
  • 361
  • 0
Mastering unix shell scripting phần 5 doc

Mastering unix shell scripting phần 5 doc

... took 40 .77 seconds in real time, 0.36 secondsof system time, and 0.02 seconds of user time. Using the PV query method I reducedthe execution time to 12 .77 seconds in real time and 0. 17 seconds ... 9 .7. The sqlplus command in Listing 9.8 shouldbe run on the local machine.[oracle@yogi] sqlplus / @/usr/local/bin/mysql_query.sqlSQL*Plus: Release 8.1 .7. 0.0 - Production on Wed Aug 7 16: 07: 30 ... 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 6 doc

Mastering unix shell scripting phần 6 doc

... ftp booboo Jul 24 17: 35 - 17: 35 (00:00)root pts/1 mrranger Jul 24 17: 11 still logged in.root pts/0 mrranger Jul 24 17: 11 still logged in.root pts/0 mrranger Jul 24 17: 09 - 17: 11 (00:01)root ... AIXsysconfig.ksh shell script listing. (continues)Taking a System Snapshot 3 47 rootvg:PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTIONhdisk0 active 479 0 00 00 00 00 00hdisk1 active 479 184 92 ... Opkts Oerrs Collen0 1500 link#2 2.60.8c.2d .75 .b1 112330 0 1086 97 0 0en0 1500 10.10 yogi 112330 0 1086 97 0 0lo0 16896 link#1 28302 0 28304 0 0lo0 16896 1 27 loopback 28302 0 28304 0 0lo0 16896...
  • 70
  • 363
  • 0
Mastering unix shell scripting phần 8 potx

Mastering unix shell scripting phần 8 potx

... identify.ksh shell script listing. (continues)Turning On/Off SSA Identification Lights 5 17 -rwxrwxrwx 1 root sys 1280000 Aug 27 15:33 /scripts/sudo/sudo-1.6.tar-rw-r r 1 root sys 4 674 5600 Jul 27 09:48 ... main body of the shell script.The Full Shell ScriptThis is a good point to show the entire shell script and go through the details at the endof 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 shell script...
  • 70
  • 355
  • 0
Mastering unix shell scripting phần 9 docx

Mastering unix shell scripting phần 9 docx

... each loop iteration:ADD=”12”ADD=”12 + 453 .76 6”ADD=”12 + 453 .76 6 + 223.6”ADD=”12 + 453 .76 6 + 223.6 + 3.1459 27 ADD=”12 + 453 .76 6 + 223.6 + 3.1459 27 + 22”Using a Here DocumentWhen the looping ... /tmp/myfilename/tmp/myfilename.120601.1315 07. 03038/tmp/myfilename.120601.1315 07. 15593/tmp/myfilename.120601.1315 07. 1 176 0/tmp/myfilename.120601.131508.08 374 /tmp/myfilename.120601.131508.01926/tmp/myfilename.120601.131508. 072 38/tmp/myfilename.120601.131509. 075 54/tmp/myfilename.120601.131509.12343/tmp/myfilename.120601.131510.08496/tmp/myfilename.120601.131510.18285/tmp/myfilename.120601.131510.18895/tmp/myfilename.120601.131511.16618/tmp/myfilename.120601.131511.30612/tmp/myfilename.120601.131511.16865/tmp/myfilename.120601.131512.01134/tmp/myfilename.120601.131512.19362/tmp/myfilename.120601.131512.042 87 /tmp/myfilename.120601.131513.10616/tmp/myfilename.120601.131513.0 870 7/tmp/myfilename.120601.131513. 270 06/tmp/myfilename.120601.131514.15899/tmp/myfilename.120601.131514.18913/tmp/myfilename.120601.131515. 271 20/tmp/myfilename.120601.131515.23639/tmp/myfilename.120601.131515.13096/tmp/myfilename.120601.131516.19111/tmp/myfilename.120601.131516.05964Listing ... [root:yogi]@/scripts# ./float_add.ksh -s 8 2 223.545 332.009 976 553The sum of: 2 + 223.545 + 332.009 976 553to a scale of 8 is 5 57. 554 976 553Listing 22.3 float_add.ksh shell script in action.Floating-Point Math...
  • 70
  • 370
  • 0
Mastering unix shell scripting phần 10 docx

Mastering unix shell scripting phần 10 docx

... 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 ... 14chpwd_menu.ksh: This shell script uses sudo to allow support personnel to change passwords.sudo-1.6.3p7.tar.gz: This is a tar ball of the sudo source code.Chapter 15hgrep.ksh: This shell script ... individual pieces 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...
  • 73
  • 347
  • 0

Xem thêm

Từ khóa: linux shell scripting cookbook 2nd pdflinux shell scripting cookbook ebook pdflinux shell scripting interview questions pdflinux shell scripting cookbook download pdfbash shell scripting cheat sheet pdfbasic english for computing phần 7 pdfBá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ự biến đổi một số cytokin ở bệnh nhân xơ cứng bì hệ thốngchuyê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 namNghiê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 tổ chức chạy tàu hàng cố định theo thời gian trên đường sắt việt namđề 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ôitPhá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 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úngNghiên cứu khả năng đo năng lượng điện bằng hệ thu thập dữ liệu 16 kênh DEWE 5000Thơ nôm tứ tuyệt trào phúng hồ xuân hươngKiể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ĩ)BT Tieng anh 6 UNIT 2Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtGiá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-2015Đổi mới quản lý tài chính trong hoạt động khoa học xã hội trường hợp viện hàn lâm khoa học xã hội việt namTÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲ