#!/bin/sh

echo "Logging 'out' in /tmp/log"
if [ -w /tmp/log ]
then
 echo "out" >> /tmp/log
else
 echo "out" > /tmp/log
fi
