uptime script for linux (suse 9.2)

Categories: Linux, Script

first script – puts uptime and w to file

rm dmesg_linux.txt # removes existing dmesg file
uptime > dmesg_linux.txt # uptime piped to dmesg
w > dmesg_linux.txt # w piped to dmesg

chron set to once per hour – maybe every half hour or 15 minutes

second script – places dmesg_linux.txt on server every 15 – 30 minutes

ftp -n ftp.xxxx.com # ftp.xxxx.com is replaced with name of ftp
quote user username # username on ftp
quote pass passwd # password of said usernam on ftp
put dmesg_linux.txt # file to place on ftp

link at right


    Leave a Reply

    Your email address will not be published. Required fields are marked *