SELECT column, COUNT(column) FROM table GROUP BY column HAVING ( COUNT(column) > 1 );
Monthly Archives: November 2009
Aktuellere Versionen von snmpd werten /etc/hosts.allow aus, um zu entscheiden, ob die Verbindung angenommen wird oder nicht. Ohne die folgende Zeile in /etc/hosts.allow findet man sonst nachfolgende Meldung in /var/log/messages:
snmpd: 10.231.5.16
snmpd[14878]: Connection from UDP: [10.231.5.16]:33957 REFUSED
perl -ne 'print lc' foo
#!/bin/bash
for DIR in /data/*
do
PERM=`ls -ld ${DIR} | cut -f1 -d" "`
if [ ${PERM} != "drwxrwxrwx" ]
then
chmod 777 ${DIR}
fi
done
#!/bin/bash
pwd=`pwd`
find ${pwd} -type f -name \*.rar | \
while read "file"
do
directory=`dirname ${file}`
filename=`basename ${file}`
let number=${#filename}-2
cd ${directory}
unrar x ${filename}
if [ $? -eq 0 ]; then
rm ${filename:0:${number}}*
else
echo ERROR: unrar failed on $file
fi
cd ${pwd}
done
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Reply
Nach Prüfung der vorhandenen Einträge hiermit alle meine Kommentare, die ohne Authentifizierung erfolgten, meinem User in Movable Type zugeordnet:
UPDATE
`mt_comment`
SET
`comment_commenter_id` = 1,
`comment_email` = 'sw@example.com',
`comment_created_by` = 1
WHERE
`comment_author` = 'sw'
AND isnull(`comment_commenter_id`)
AND isnull(`comment_created_by`);
echo Hello, world!