filePro/email from Unix script file

John Esak john at valar.com
Wed Dec 14 23:24:20 PST 2005


Hey Ken,
Somewhere in here you suggest testing if the file is zero length... I had to
do just that yesterday... EXISTS does not help, of course, so I had to open
the file and use FILESIZE().... any chance of adding a parameter to EXISTS
that will return the size as well as the "exists/yes-no"? If so, I'll submit
it as a wish-list itme.
John

> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Kenneth
> Brody
> Sent: Wednesday, December 14, 2005 3:58 PM
> To: Butch Ammon
> Cc: filepro-list at lists.celestial.com
> Subject: Re: filePro/email from Unix script file
>
>
> Quoting Butch Ammon (Wed, 14 Dec 2005 15:01:52 EST):
>
> > Good afternoon,
> >
> > I am trying to help my Minneapolis office (Super Radiator Coils) with an
> > idea they have with filePro on SCO Unix.  I made a real simple script
> > file for them to run a filePro report to a /tmp file.  Then immediately
> > email the /tmp file.
> >
> > But... what happens when the filePro report runs and doesn't happen to
> > select any records?  The script file continues and emails a
> blank report!
> >
> > Is there a quick way to kill the script file when the records selected
> > is "0"?
> [...]
>
> Check if the file is zero length (test -s filename) and don't send
> the e-mail if so.
>
> Or, have filePro send the e-mail from @DONE if @TS isn't "0".
>
> --
> KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
> http://www.hvcomputer.com
> http://www.fileProPlus.com
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list