From: Sky Yin Date: 2006-01-03T21:33:21+09:00 Subject: Help on I/O pipe ------=_Part_20774_9356645.1136291588521 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline One process of my analysis program uses an external non-linear optimizer. That optimizer needs a model file as the argument. The current approach I employ to accomplish this is to create a model file on disk everytime running the optimizer. The code is simply like @model =3D File.open("model.mod", "w") ... @model.close result =3D `optimizer.exe model.mod` The problem is that I have to repeat running optimizer on different models many many times during the analysis. I wonder if such heavy writing on a single file will do any harm to my hard disk. My concern of improving it is to use I/O pipe to feed the optimizer without the needs to create real mode= l files. Can anyone give me some tips or examples on using the shell pipe? Th= e rdoc isn't so clear. Thanks ------=_Part_20774_9356645.1136291588521--