forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Limit to the Pipe parameter?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Thu Jun 19, 2003 2:56 pm    Post subject: Limit to the Pipe parameter? Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Jun 19, 2003 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Sun Jun 22, 2003 4:18 am    Post subject: Reply with quote

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
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Tue Jun 24, 2003 1:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group