USER command questions

Tyler tyler.style at gmail.com
Thu Sep 10 17:32:48 PDT 2009


Has anyone managed to get his to work on SCO Openserver with the mv or cp
commands?  I can get ls to work, but no matter what I try I get the command
usage output to std err.  These are such basic commands I can't believe they
wouldn't work for USER as it is described in the manual.

All I really want is to list the csv files in a directory, process them,
then move them to another directory.  This extremely basic file manipulation
to be ridiculous difficult to do in filePro!

Here is what I have:

::DECLARE filepath(128,*); filepath="/public/mailerListsSent/Prospects/":
::DECLARE filename(32,*):
::debug on:
::USER dirlist = ls:
::USER move = mv:
::dirlist=filepath{"/*.csv"; filename=dirlist:
loop01s:filename eq "":goto loop01e:
::show filename:
::'msgbox filepath{filename<filepath{"imported/"{filename:
::'goto loop01n:
::move = "-f":
::move = filepath{filename:
::move = filepath{"imported/"{filename:
::i=move:
::end:
loop01n::filename=dirlist; goto loop01s:
loop01e:::

Can anyone tell me how to use cp or mv with the USER command?  Or is it just
garbage and I should go back to SYSTEM?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20090910/1d2c6773/attachment.html 


More information about the Filepro-list mailing list