SYSTEM command

Jeff Harrison jeffaharrison at yahoo.com
Fri Nov 19 14:12:42 PST 2004


--- Kenneth Brody <kenbrody at bestweb.net> wrote:

> Steven Waters wrote:
> > 
> > SCO UNIX 5.0.6 Filepro 5
> > I am not sure if this can be done.
> > I need to know when to purge a directory of files.
> > I use this at the command prompt;
> > # l > list
> > # wc -l < list
> >   481
> > I have 481 files in the directory. Lets say that
> when the directory
> > reaches 500 I want Filepro to tell me to purge it.
> > is it possible to get the result back , like a
> dummy field
> > to your output processing system command?
> [...]
> 
> In this case, you can use OPENDIR/CLOSEDIR to get
> the number of files
> in a directory.
> 
> -- 

Or you can use the user command or import ascii. 
Using the user command for example, you could do as
follows:

::user tmp = /usr/local/bin/countm:
::tmp="/tmp/file":
::tp(8,.0)=tmp:
::show "@The count of lines is "<tp:

Your countm script could look as follows:

read afile
wc -l $afile

Good Luck.

Jeff Harrison
jeffaharrison at yahoo.com

------------------------------------------------------
Author of JHImport and JHExport.  The fastest and 
easiest way to create code for filePro Imports
and Exports.
------------------------------------------------------

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Filepro-list mailing list