Spass mit Ruby
Was tut das folgende Stück Ruby-Code? ;-)
3.times{|o|ARGV[0].split(//).each{|q|print' _ |_|_ _| |'[[[0,11,5],[2,3,3],
[0,9,7],[0,9,9],[2,5,3],[0,7,9],[0,7,5],[0,3,3],[0,5,5],[0,5,9]][q.to_i][o],3]};
puts}
Was tut das folgende Stück Ruby-Code? ;-)
3.times{|o|ARGV[0].split(//).each{|q|print' _ |_|_ _| |'[[[0,11,5],[2,3,3],
[0,9,7],[0,9,9],[2,5,3],[0,7,9],[0,7,5],[0,3,3],[0,5,5],[0,5,9]][q.to_i][o],3]};
puts}
Aus aktuellem Anlass:
# kill -HUP `cat /var/run/sshd.pid`
# kill `head -n1 /var/run/sendmail.pid` # . /etc/rc.conf.local # /usr/sbin/sendmail $sendmail_flags
oder auch nur
# kill -HUP `head -n1 /var/run/sendmail.pid`
um die Konfiguration neu zu laden.