The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

passing java stdout to unix scripts

Posted by Ron Moore on October 11, 2000 at 11:19 AM

I have a java program running that will print various variable values to stdout. I want to use these parameters as input to a unix shell sript. I have tried the unix pipe | but does not work. For security reasons I cannot use java to write to a file and have unix shell use cut to extract the fields, so must pass stdout from java to shell scripts on the fly.

tks,


Ron Moore



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us