| View previous topic :: View next topic |
| Author |
Message |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Thu Jun 19, 2003 2:56 pm Post subject: Limit to the Pipe parameter? |
|
|
Does anyone know if there is a physical limit to how much information the PIPE parameter on the RUN command can pass to the script? I tried the sample program with VDS 5 and when I try to pass a lot of info, it hangs up. (I changed the WAIT 2 command in the example script to WAIT)
Thanks for any info - |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Jun 19, 2003 7:49 pm Post subject: |
|
|
I don't think there's a limit, but some programs are difficult to pipe. (I gave up in the end trying to capture the output from F-Prot for DOS this way.) You can get round some problems by running the program from a command shell, e.g. runh cmd.exe /c myprog.exe blah,wait 5,pipe _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Sun Jun 22, 2003 4:18 am Post subject: |
|
|
I was piping the output of a program called cdbflite.exe, which is like a sql-statement interpreter for dBase-style .dbf files.
Very handy if you work with .dbf files: http://www.whitetown.com/cdbflite/
In my program, it writes a result set from a database table to standard output (one record=one line, which should be piped back to my VDS program). It works great for maybe 20 lines, but then stops receiving input apparently. I've tried it with various WAIT times, but the result is always the same.
It could be a program-specific problem, but I just wanted to see if anyone else had run into that.
It works fine if I direct the output to a text file and then load that file into a list. The PIPE parameter would save me that step. |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Jun 24, 2003 1:20 am Post subject: |
|
|
I tried again with just a DIR of a directory with around 150 files. It returned a list, but no matter how much time I gave it to wait, it only got through the files starting with D (it listed them alphabetically.)
So it seems to me that there is some limit to the PIPE parameter. Could it have something to do with string length in VDS or maximum variable size? |
|
| Back to top |
|
 |
|