#!/bin/bash #Oct1 2004 ckd OLD=$COLUMNS #eventually an if thing w/the next commented line would be good #cp 'which querysys' /tmp/outquery cp querysys /tmp/outquery uname -a >> /tmp/outquery lspci >> /tmp/outquery /sbin/ifconfig -a >> /tmp/outquery dmesg >> /tmp/outquery gunzip -c /proc/config.gz >>/tmp/outquery export COLUMNS=150 dpkg -l >> /tmp/outquery if (cp -f /tmp/outquery outquery); then export COLUMNS=$OLD exit 0; else cp -f /tmp/outquery ~/outquery; export COLUMNS=$OLD exit 0; fi