The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 05-16-2008
la_womn la_womn is offline
Registered User
  
 

Join Date: May 2007
Posts: 13
I figured it out. My script now looks like:

Quote:
#!/usr/bin/ksh

export MDIR=$PS_HOME/datafiles

NAME=$1
SERVER=$2
DIRECTORY=$3
DATABASE=$4
ID=$5

echo "*" $NAME $DATABASE $DIRECTORY >> $MDIR/bldtuout.txt
/usr/bin/ssh -q $ID@$SERVER "find $DIRECTORY -type d -exec du -ks {} \;" >> $MDIR/bldtuout.txt 2> $MDIR/bldterr.txt
Thank yiou to everyone for your help.