Mastering unix shell scripting phần 10 docx
... a problem, Houston! added interface ip =10. 10 .10. 1 bcast =10. 10.255.255 nmask=255.255.0.0 timeout connecting to 10. 10 .10. 4:139 Error connecting to 10. 10 .10. 4 (Operation already in progress) Connection ... progress) Connection to JohnB failed added interface ip =10. 10 .10. 1 bcast =10. 10.255.255 nmask=255.255.0.0 Connection to CindySue failed added interface ip =10. 10 .10. 1 bca...
Ngày tải lên: 09/08/2014, 16:20
... of the other shell scripts later in this chapter. That is it for the addition shell script, but we still have four more shell scripts to go in this chapter. Each of the following shell scripts ... subtraction. Because this shell script is very similar to the shell script in Listing 22.1 we are going to show the shell script and study the details at the end. The float_subtract.ks...
Ngày tải lên: 09/08/2014, 16:20
... xix Chapter 1 Scripting Quick Start and Review 1 Case Sensitivity 1 Unix Special Characters 2 Shells 2 Shell Scripts 2 Functions 2 A Function Has the Form 3 Running a Shell Script 3 Declare the Shell ... Stop, usually CONTROL-z Scripting Quick Start and Review 21 Randal K. Michael Mastering Unix Shell Scripting Another thing to note is that all of the variables used in the...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 2 pdf
... monitoring shell scripts and there is a failure, success, or request, we need a method of getting a message to the right people. There are really three main strategies of notification in shell scripts. ... 0m52.01s sys 6m10.94s Method 8: function while_LINE_line_bottom_cmdsub2 real 7m20.34s Listing 2.17 Timing data for each loop method. (continued) 74 Chapter 2 53 Have you ever created a...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 3 ppsx
... 3916 5% 25 % /home /proc /proc /dev/hd10opt 638976 24456 97% 15457 10% /opt /dev/scripts_lv 102 400 95264 7% 435 2% /scripts /dev/cd0 656756 0 100 % 328378 100 % /cdrom 130 Chapter 5 Table 5.8 (Continued) FILESYSTEM ... variables need to be multiplied by 102 4 blocks (( MIN_MB_FREE = $(echo $MIN_MB_FREE | sed s/MB//g) * 102 4 )) (( FSTRIGGER = $(echo $FSTRIGGER | sed s/MB//g) * 102 4 )...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 4 ppsx
... %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 all 11.40 0.00 5.00 83.60 10: 02:39 PM all 60.80 0.00 36.30 2.90 Average: all 18.07 0.00 10. 35 71.58 Now ... at the average of the samples directly. # sar 10 4 | grep Average Average 26 74 0 0 HP-UX # sar 10 4 HP-UX dino B .10. 20 A 9000/715 07/29 /102 22:48 :10 %usr %sys %wi...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 5 doc
... create the mk_passwd.ksh shell script. The entire shell script is shown in Listing 10. 15. Pay particular attention to the boldface text throughout the mk_passwd.ksh shell script. #!/usr/bin/ksh # # ... array Listing 10. 15 mk_passwd.ksh shell script listing. (continued) 292 Chapter 10 X=0 while ((X < LENGTH)) do # Build the list here ((X = X + 1)) echo “$X “ done ) Listing 1...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 6 doc
... rmt0.7 crw-rw 1 root system 10, 0 Jul 26 2001 rootvg crw-rw 1 root system 10, 10 Jul 29 2001 rscripts_lv crw-rw-rw- 1 root system 13, 14 Jul 26 2001 sad brw-rw 1 root system 10, 10 Jul 29 2001 scripts_lv crw-rw-rw- ... Statistics Filesystem 102 4-blocks Free %Used Iused %Iused Mounted on /dev/hd4 32768 109 24 67% 1854 12% / /dev/hd2 1449984 61680 96% 40941 12% /usr /dev/hd9var 53248...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 7 pdf
... successful. 150 ASCII data connection for auto_ftp_xfer.ksh (10. 10 .10. 1,32787) (227 bytes). 226 ASCII Transfer complete. 246 bytes received in 0.0229 seconds (10. 49 Kbytes/s) local: auto_ftp_xfer.ksh remote: ... Together Now we need to combine the shell scripts for each of the different Unix flavors so that one script does it all. Please do not think that taking several shell script...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 8 potx
... main body of the shell script. The Full Shell Script This is a good point to show the entire shell script and go through the details at the end of 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 sh...
Ngày tải lên: 09/08/2014, 16:20