#!/bin/sh
# Licensed Materials - Property of IBM
# 5648-F10 (C) Copyright International Business Machines Corp. 2012
# All Rights Reserved
# US Government Users Restricted Rights - Use, duplication or disclosure
# restricted by GSA ADP Schedule Contract with IBM Corp.

ping -c 3 $1 > $2 2> $2
ping6 -c 3 $1 >> $2 2>> $2
echo COMMANDEND >> $2