Hi.
If you want to split output of your script into chunks of fixed size, try
Code:
$ ./gen.lisp | split -l10 -d - name
Where `gen.lisp' is your program, `-l10' each chunk is of 10 lines length, `-d' -- use numeric suffixes, `-' -- read from standard input, `name' -- prefix for created files. Read `man split' for details.
If you need more control over file names or something, try the following (almost equivalent) command
Code:
$ ./gen.lisp | (sleep 0.1; for((i=0; i<10; i++)); do dd of=$(printf "name_%.4d.txt" $i) bs=110 count=1; done)
Read `man dd', `help for', `man printf' for details.
I apologize if I misunderstood your question.