Mastering unix shell scripting phần 7 pdf
... combine the shell scripts in Listings 17. 1 and 17. 4. We are also going to add the functionality to add pre- and post-ftp events. Let’s start by looking at the shell script in Listing 17. 5, get_ftp_ files.ksh. ... option is shown here: # lpstat -a hp4 accepting requests since May 07 07: 02 2002 yogi_hp4_1ps accepting requests since May 07 07: 02 2002 Listing 16.12 lpstat -a and lpstat...
Ngày tải lên: 09/08/2014, 16:20
... Space Monitor 169 Other Options to Consider 176 Event Notification 177 Log File 177 Scheduled Monitoring 177 Summary 177 Chapter 7 Monitoring System Load 179 Syntax 180 Syntax for uptime 180 AIX 180 HP-UX ... 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...
Ngày tải lên: 09/08/2014, 16:20
... $(command). Method 4: function cat_while_LINE_line real 7m16.87s user 0m51.87s sys 6m8.54s Method 7: function while_LINE_line_cmdsub2 real 7m18.04s user 0m52.01s sys 6m10.94s Listing 2.22 Command ... while_line_LINE_bottom real 6m53 .71 s user 0m36.62s sys 6m2.03s Method 4: function cat_while_LINE_line real 7m16.87s user 0m51.87s sys 6m8.54s Method 5: function while_line_LINE real 6m50 .79...
Ngày tải lên: 09/08/2014, 16:20
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% /opt swap 554428 296 554132 1% /tmp /dev/dsk/c0d0s7 1015542 1 954598 1% /export/home /dev/dsk/c0d0s1 375 255 214843 1228 87 64% /usr/openwin...
Ngày tải lên: 09/08/2014, 16:20
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 0 Average 25 75 0 0 Now let’s look at the average of the samples directly. # sar 10 4 | grep Average Average 26 74 0 0 HP-UX # ... ./proc_wait.ksh xcalc WAITING for xcalc to start Thu Sep 27 21:11: 47 EDT 2001 xcalc has Started Execution Thu Sep 27 21:11:55 EDT 2001 root 2 677 2 178 66 13 21:11:54 pts/6 0:00...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 5 doc
... took 40 .77 seconds in real time, 0.36 seconds of system time, and 0.02 seconds of user time. Using the PV query method I reduced the execution time to 12 .77 seconds in real time and 0. 17 seconds ... 9 .7. The sqlplus command in Listing 9.8 should be run on the local machine. [oracle@yogi] sqlplus / @/usr/local/bin/mysql_query.sql SQL*Plus: Release 8.1 .7. 0.0 - Production on Wed Aug 7 1...
Ngày tải lên: 09/08/2014, 16:20
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 DISTRIBUTION hdisk0 active 479 0 00 00 00 00 00 hdisk1 act...
Ngày tải lên: 09/08/2014, 16:20
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 Script This is a good point to show the entire shell script and go through the details at the end of the listing. The SSAidenti...
Ngày tải lên: 09/08/2014, 16:20
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 Document When 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/myfilenam...
Ngày tải lên: 09/08/2014, 16:20
Mastering unix shell scripting phần 10 docx
... 24 operations_menu.ksh: Shell script menu for an Operations staff. Chaper 25 broadcast.ksh: Shell script to send pop-up messages to Windows desktops. This shell script requires Samba to be installed on the UNIX ... 14 chpwd_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...
Ngày tải lên: 09/08/2014, 16:20