3 ms·
In the process of working on SUN Java Access Manager, we kept getting application server core dumps. To troubleshoot, I needed to grab all the logs and zip the
by bmelton 16y ago
In the process of working on SUN Java Access Manager, we kept getting application server core dumps. To troubleshoot, I needed to grab all the logs and zip them up to send to SUN support. I'd been up and working on this particular problem for over 30 hours, and was very closely treading the line between asleep and awake.
I wrote something like:
BACKUP_DIR=/home/bmelton/backups
$LOG_DIR=/opt/alui/portal/logs
mv $LOG_DIR/* $BACKUP_DIR
tar -czf `date`.tar.gz $BACKUP_DIR/*
Anybody who's awake has probably already spotted that I tried to SET $LOG_DIR instead of LOG_DIR, and hence, ended up moving the entire operating system into my home folder.
It was a virtual instance, using Sun's zone virtualization, so fixing it proved to be trivial, but it was on a production system serving a federal agency, and that wasn't the only thing on the server.
Oddly enough though, after the script ran, the Access Manager (having loaded everything into memory, I assume) still worked like a champ, though everything else failed completely.