user command

Fairlight fairlite at fairlite.com
Tue Oct 6 16:15:12 PDT 2009


You'll never BELIEVE what Chris Rendall said here...:
> I'm using the "user" command to run a script in Linux to get a list
> of files in a directory on a Windows share.  Is there a way to use a
> parameter with the "user" command?  The name of the directory I want to
> get the list of files from changes depending on the job number.
>
> I've done this before with the "user" command, but in that program I'm
> always looking in the same directory to get the list of names to display
> in the listbox.

I wanted to say yes, just create a variable with the full command and use
it, but I don't believe that's the case.  I seem to remember the late
Bob Stockler saying several times on the list that USER had a number of
restrictions on it, and not having arguments was one of them.  

Two solutions come to mind:

1) Rewrite the program you're using to get the list of files to read one
line of input before performing its check, and have it use that input as
the path.

2) If you can't rewrite the actual program, write a wrapper program that
does the above and then calls the actual program.

You've got a two-way pipe right there, why not use the second direction?

mark->
-- 
Audio panton, cogito singularis,


More information about the Filepro-list mailing list