Quantcast
Channel: Active questions tagged powershell-3.0 - Stack Overflow
Viewing all articles
Browse latest Browse all 121

Can't Activate Document in Pipeline (unix script)

$
0
0

I'm trying to run the program bayes-seg with: cat data/books/clinical/050.ref | ./segment config/dp.config using Powershell.

I understand that the command cat outputs the file and pipe will use the output as a parameter to ./segment config/dp.config

When running the above command. I'm met with the exception:

Cannot run a document in the middle of a pipeline: C:\Users\name\Desktop\bayes-seg-master\segment.At line:1 char:35+ cat data/books/clinical/050.ref | ./segment config/dp.config+ CategoryInfo: InvalidOperation: (C:\Users\name\...-master\segment:String) [], RuntimeException+ FullyQualifiedErrorId : CantActivateDocumentInPipeline

What causes this exception? I've looked around on Google and could not find anything which explains the exception in detail. Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>