[PD] [shell] creates line breaks randomly in big lists.

2008-11-03 Thread Martin Schied

Hello, dear list!


I'm using Ubuntu 8.04, Pd version 0.40.3-extended, pentium M 1600MHz, 
currently trying to build a file handling patch using [shell] and a 
message to it: [ls mypath/*.jpg(


everything works fine with 20 or less files in the folder. In folders 
containing approximately 200 files, some of the resulting lines become 
divided by line breaks, for example:


print: Szenografie3/manufactum/ausgewaehlt/6608.jpg
print: Szenografie3/manufactum/ausgewaehlt/6610.jpg
print: Szenografie3/manufactu
print: m/ausgewaehlt/6611.jpg
print: Szenografie3/manufactum/ausgewaehlt/6614.jpg
print: Szenografie3/manufactum/ausgewaehlt/6615.jpg

the cut appears at different positions and different filenames when 
sending the message again. In some cases a filename is distributed on 3 
lines.


Is there any way to detect those line breaks within pd? Any objects for 
string manipulations or regular expressions?


Thanks,
Martin


#N canvas 644 319 450 300 10;
#X obj 95 116 shell;
#X obj 95 139 route init;
#X obj 164 163 print;
#X msg 95 93 ls Szenografie3/manufactum/ausgewaehlt/*.jpg;
#X connect 0 0 1 0;
#X connect 1 1 2 0;
#X connect 3 0 0 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [shell] creates line breaks randomly in big lists.

2008-11-03 Thread Andy Farnell


man stty

Each call to [shell] opens a new tty

It could be an issue that's a combination of column sizes
and EOL characters.

Because of buffering problems [shell] can be an unreliable
tool. If you can use pdlua or pyext to write a listing external
you will have more control and more consistent results.






On Mon, 03 Nov 2008 16:59:54 +0100
Martin Schied [EMAIL PROTECTED] wrote:

 Hello, dear list!
 
 
 I'm using Ubuntu 8.04, Pd version 0.40.3-extended, pentium M 1600MHz, 
 currently trying to build a file handling patch using [shell] and a 
 message to it: [ls mypath/*.jpg(
 
 everything works fine with 20 or less files in the folder. In folders 
 containing approximately 200 files, some of the resulting lines become 
 divided by line breaks, for example:
 
 print: Szenografie3/manufactum/ausgewaehlt/6608.jpg
 print: Szenografie3/manufactum/ausgewaehlt/6610.jpg
 print: Szenografie3/manufactu
 print: m/ausgewaehlt/6611.jpg
 print: Szenografie3/manufactum/ausgewaehlt/6614.jpg
 print: Szenografie3/manufactum/ausgewaehlt/6615.jpg
 
 the cut appears at different positions and different filenames when 
 sending the message again. In some cases a filename is distributed on 3 
 lines.
 
 Is there any way to detect those line breaks within pd? Any objects for 
 string manipulations or regular expressions?
 
 Thanks,
 Martin
 
 
 


-- 
Use the source

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list