27%
30.11.2025
creates a 256MB file in the current directory along with process for the job. This process reads complete file content in random order. Fio records the areas that have already been read and reads each area
27%
30.11.2025
clear
03 while true
04 do
05 echo "New record"
06 maxrecord=`ls -1 *.dat | sort | tail -1 | cut -d. -f 1`
07 newrecord=$(echo $maxrecord + 1 | bc )
08 width=`echo $newrecord | wc -c`
09
10 ...
11
12
27%
30.11.2025
is not accessible! ****************" >> dba.log
15 /usr/local/etc/rc.d/002pgsql.sh start
16 sleep 15
17 psql -U monitor -d monitor -c "select * from watch;"
18
19 if [ $? -eq 0 ];
20
21 then
22
27%
30.11.2025
Connection
01 #!/usr/bin/expect
02
03 set host [lindex $argv 0]
04 set timeout 5
05 spawn /usr/bin/ssh aefrisch@$host
06 expect "(yes/no)? " {
07 send "yes\r"
08 }
09 expect "password:"
10 send
27%
30.11.2025
OS*)
15 PING="ping"
16 PING2=""
17 ;;
18 esac
19 ...
20
21 for i in server1 server2 server3 workstation1 workstation2
22 do
23 $PING $i $PING2 > /dev/null
24 if [ "$?" != "0
27%
30.11.2025
(number, label):
07 for i in xrange(number):
08 print ' ' + str(i) + ' ' + label
09 sleep((number - 15)/10.0)
10
11 if '__main__' == __name__:
12
13 p1 = Process(target = count, args = (20
27%
30.11.2025
) }' -c '/bin/ls -l'
total 20
-rw-rw-r--. 1 tscherf tscherf 18216 2010-04-12 09:02 systemtap.txt
clone_quoting_options o=0x0
clone_quoting_options o=0x0
Cross-Compiling
If you want to run a System
27%
30.11.2025
_config
03 bash#> vi sshd_config
04 AllowTcpForwarding no
05 ClientAliveCountMax 3
06 ClientAliveInterval 0
07 Compression delayed
08 LoginGraceTime 60s
09 LogLevel DEBUG3
10 MaxAuthTries 2
27%
30.11.2025
dh_group modp1024;
09 }
10 generate_policy off;
11 }
12
13 sainfo address 192.168.2.0/24 any address 172.16.0.0/16 any {
14 pfs_group modp1024;
15 encryption_algorithm aes256;
16
27%
30.11.2025
end (Figure 2).
Listing 3
update-dns
01 #!/usr/bin/perl
02
03 use DBI;
04
05 $db_user = "powerdns";
06 $db_passwd = "powerpass";
07
08 $hostname = $ARGV[0] . ".my.org";
09 $ip = $ARGV[1