[HPADM] Scripting Question

From: Quinn, Bryan (Bryan.Quinn@CooperTools.com)
Date: Tue Dec 03 2002 - 08:22:19 EST


Hello Admins,

Got a little scripting question. I am writing a script that will ftp a file
from another server to my UNIX box and then email it but I have a little
problem. Sometimes this file will have nothing in it therefore it will have
a size of zero. If that is the case I do not want to email the file. My
thought was to email the file down and then perform and ll on the file and
check the size. If it was equal to zero I would just remove the file and
break out of the script. If it did have a size I would continue on in the
script and send the email.
My question is whether or not there is an easier way to do this?

Any ideas would be greatly appreciated!

Thanks!
Bryan Douglas Quinn
UNIX Support Specialist
Cooper Power Tools
Lexington, SC
(803) 808-6770
Bryan.Quinn@coopertools.com

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:22 EDT