First point, John is 100% correct, use opendir! USER is the hammer while opendir is the correct tool, the screwdriver.<br><br>Second point, if you want to persist with USER then Mark is mostly right :)<br><br>The USER command doesn&#39;t take parameters in the filePro code like:<br>
<br>user mycmd=myprogram par1 par2 par3<br><br>but can take parameters, like this:<br><br>user mycmd=myprogram<br>mycmd=&quot;par1&quot;<br>aa=mycmd<br><br>Mark is right in that the USER command should be a wrapper.  The program linked to by the USER command must loop looking for input, parameters, and then return data based on that parameter and then loop again, usually until it gets a parameter to exit.<br>
<br>Hope this helps<br><br>Ken<br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 9:15 AM, Fairlight <span dir="ltr">&lt;<a href="mailto:fairlite@fairlite.com">fairlite@fairlite.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You&#39;ll never BELIEVE what Chris Rendall said here...:<br>
&gt; I&#39;m using the &quot;user&quot; command to run a script in Linux to get a list<br>
&gt; of files in a directory on a Windows share.  Is there a way to use a<br>
&gt; parameter with the &quot;user&quot; command?  The name of the directory I want to<br>
&gt; get the list of files from changes depending on the job number.<br>
&gt;<br>
&gt; I&#39;ve done this before with the &quot;user&quot; command, but in that program I&#39;m<br>
&gt; always looking in the same directory to get the list of names to display<br>
&gt; in the listbox.<br>
<br>
I wanted to say yes, just create a variable with the full command and use<br>
it, but I don&#39;t believe that&#39;s the case.  I seem to remember the late<br>
Bob Stockler saying several times on the list that USER had a number of<br>
restrictions on it, and not having arguments was one of them.<br>
<br>
Two solutions come to mind:<br>
<br>
1) Rewrite the program you&#39;re using to get the list of files to read one<br>
line of input before performing its check, and have it use that input as<br>
the path.<br>
<br>
2) If you can&#39;t rewrite the actual program, write a wrapper program that<br>
does the above and then calls the actual program.<br>
<br>
You&#39;ve got a two-way pipe right there, why not use the second direction?<br>
<br>
mark-&gt;<br>
<font color="#888888">--<br>
Audio panton, cogito singularis,<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</font></blockquote></div><br>