Page 1 of 1

Using pipes with swift

PostPosted: Fri Mar 16, 2007 2:17 pm
by manojb
Hi,

I would really appreciate if someone could answer this for me.

I am trying to use swift to read from a pipe using the following command line.

cat m.txt | /opt/swift/bin/swift -o m1.wav -f -

However this doesn't work. I was expecting this to work like regular unix commands like the following:

tar <sometar.gz> file | gzip -d

The above approach is significantly faster than untar to a file and the gzip. I was trying to achive the same functionality using the above pipe line.

Thanks a lot for reading this,

Manoj.

PostPosted: Wed Mar 21, 2007 7:52 am
by hailong
It is known that using pipe for swift with large amount of text could potentially cause problems. Swift provides an option -f <textfile> to pass large amount of text.