#!/bin/bash

HOSTNAME=$(hostname)
TMP="cmd-$HOSTNAME-$$.out"

echo "----------------- $HOSTNAME -------------------" > $TMP
ps u -u $USER >> $TMP

cat $TMP
rm $TMP
