[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Perl and SQR.



Oh.

1. Why can't the Perl/SQR/Sort sequence be put into a batch file?

2. Is this is a WAIT issue? If so, you might get cure it by forcing unbuffered 
writes, i.e

$| = 1;

if you're writing to STDOUT,

select THATFILE;
$| = 1;

otherwise.

3. Now, on UNIX it is trivial (meaning, it takes 15 minutes if I could find my 
notes) to embed SQR in Perl. It would be feasible, though I haven't done it, to 
embed a Perl interpreter in your SQR executable. On Windows, well, good luck; 
I'm sure it can be done. Then you could call Perl from within SQR.



>>> JAguir@lsuhsc.edu 06/06/03 11:11AM >>>
The SQR is not generating the .TXT file.  The .TXT file is FTPed to a
folder, which it is read by the Perl command.  We want to incorporate that
Perl command into an SQR for execution, make the SQR wait until Perl
finishes processing.   After the Perl script has finished processing, then
execute the DOS command sort routine and also make the SQR wait until the
routine finishes processing.

Thanks for your assistance,

José A. Aguirre
LSU Health Sciences Center


-----Original Message-----
From: George Jansen [mailto:GJANSEN@aflcio.org] 
Sent: Friday, June 06, 2003 9:25 AM
To: sqr-users@sqrug.org 
Subject: Re: [sqr-users] Perl and SQR.


If I guess correctly, your SQR is doing something like

1. Generate .txt file

2. Clean up via Perl

3. Continue processing

It sounds to me as if the txt file hasn't been closed, so all the data
isn't flushed to disk..

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org 
http://www.sqrug.org/mailman/listinfo/sqr-users 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org 
http://www.sqrug.org/mailman/listinfo/sqr-users


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users