Post your code and I will show you the error of your ways ;-) Dan
On Tue, Nov 24, 2009 at 3:22 PM, CLIF <[email protected]> wrote: > Thanks Dan, adding the check for system(14) didn't work either but it > did point me to where the problem is, although I still don't know how > to correct it. The problem is system(14) always returns a zero which > tells me the spooler is not outputting to the stdout which is why > nothing gets put in the stdin. > > On Nov 24, 5:36 am, Daniel Klein <[email protected]> wrote: >> The spooler is not going to set idle (why does this word come up all >> the time ;-) ) waiting for your program to terminate >> >> It doesn't matter HOW you do your input. The code first needs to check >> to see if there is anything TO input. Otherwise you will get that >> error. >> >> If you are still having problems, post the code. >> >> Dan >> >> On Mon, Nov 23, 2009 at 9:36 PM, CLIF <[email protected]> wrote: >> > Yes Dan thats what I thought also but I tried an INPUT,1 and had the >> > same result. >> >> > On Nov 23, 6:15 pm, Daniel Klein <[email protected]> wrote: >> >> Clif, >> >> >> The error is occurring because you are not telling the program when to >> >> stop accepting INPUT from the spooler. >> >> >> Take a look at the code in this >> >> thread...http://markmail.org/message/ksjcvsdbvdkokpzw >> >> >> The important part of the program is where it checks SYSTEM(14) to see >> >> if the spooler is finished. >> >> >> The part where it builds up and executes the 'cmd' variable is >> >> probably not pertinent for your needs, but the rest of the program can >> >> be used to redirect spooler output to a file by capturing the spooled >> >> output a line-at-a-time and writing it to a sequential file. >> >> >> Does that help? >> >> >> Dan >> >> >> "Rome was not built in a day, but then I was not on that job!" >> >> >> On Mon, Nov 23, 2009 at 1:42 PM, CLIF <[email protected]> wrote: >> >> > Thanks Dan I did search through previous postings for "Spooler" before >> >> > I posted. I didn't see anything that addresses this particular error. >> >> > What I did find was how to create a program that the spooler will pass >> >> > input to which I can successfully do based on what I wrote below. The >> >> > problem seems to be with my program receiving the input via the INPUT >> >> > or IN statement documented below. >> >> >> > On Nov 23, 10:19 am, Daniel Klein <[email protected]> wrote: >> >> >> Usehttp://jbase.markmail.organdsearchfor 'spooler'. The answer is >> >> >> there. >> >> >> >> Dan >> >> >> >> On Fri, Nov 20, 2009 at 4:10 PM, CLIF <[email protected]> wrote: >> >> >> > jBASE 3.4 >> >> >> > Windows 2000 >> >> >> >> > I created a very simple spooler program that receives input from the >> >> >> > spooler and writes it to a directory file. I create the FORMQUEUE >> >> >> > with: >> >> >> >> > SP-CREATE F1 PROG PRINT.PROG >> >> >> >> > Here is the code for PRINT.PROG >> >> >> >> > 001 INCLUDE JBC.h >> >> >> > 002 ID = "1.TXT" >> >> >> > 003 DIRECTORY = 'D:\tmp' >> >> >> > 004 OPENSEQ DIRECTORY:"\":ID TO S.FILE ELSE NULL >> >> >> > 005 * >> >> >> > 006 INPUT LINE,1 >> >> >> > 007 LINE := CHAR(13) >> >> >> > 008 WRITESEQ LINE ON S.FILE ELSE NULL >> >> >> > 009 WEOFSEQ S.FILE ELSE NULL >> >> >> > 010 CLOSESEQ S.FILE >> >> >> >> > Here is the error I'm getting from the spooler when I do a: >> >> >> > SP-ASSIGN F1 >> >> >> > LIST PART (P >> >> >> >> > jBASE despooler for FORMQUEUE F1 >> >> >> > Started at 12:55:32 20 NOV 2009 >> >> >> > Starting Job 13 to PRINT.PROG >> >> >> > ** Error [ STDIN ] ** >> >> >> > Error getting input from STDIN , errno = 0 >> >> >> > Line 6 , Source PRINT.PROG.b >> >> >> > Completed >> >> >> >> > I know the PRINT.PROG program runs and can write to the file because >> >> >> > if I change line 6 to LINE="TEST", it does write the string TEST to >> >> >> > 1.txt. It looks like it might be a permissions issue but this is on >> >> >> > development system which has admin rights on everything. Anyone have >> >> >> > a >> >> >> > direction they can point me in? >> >> >> >> > -- >> >> >> > Please read the posting guidelines >> >> >> > at:http://groups.google.com/group/jBASE/web/Posting%20Guidelines >> >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions >> >> >> > specific to Globus/T24 >> >> >> >> > To post, send email to [email protected] >> >> >> > To unsubscribe, send email to [email protected] >> >> >> > For more options, visit this group >> >> >> > athttp://groups.google.com/group/jBASE?hl=en >> >> >> > -- >> >> > Please read the posting guidelines >> >> > at:http://groups.google.com/group/jBASE/web/Posting%20Guidelines >> >> >> > IMPORTANT: Type T24: at the start of the subject line for questions >> >> > specific to Globus/T24 >> >> >> > To post, send email to [email protected] >> >> > To unsubscribe, send email to [email protected] >> >> > For more options, visit this group >> >> > athttp://groups.google.com/group/jBASE?hl=en >> >> > -- >> > Please read the posting guidelines >> > at:http://groups.google.com/group/jBASE/web/Posting%20Guidelines >> >> > IMPORTANT: Type T24: at the start of the subject line for questions >> > specific to Globus/T24 >> >> > To post, send email to [email protected] >> > To unsubscribe, send email to [email protected] >> > For more options, visit this group >> > athttp://groups.google.com/group/jBASE?hl=en > > -- > Please read the posting guidelines at: > http://groups.google.com/group/jBASE/web/Posting%20Guidelines > > IMPORTANT: Type T24: at the start of the subject line for questions specific > to Globus/T24 > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en -- Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
