[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[comp.infosystems.www.servers.unix,comp.lang.java.misc] Re: CGI using Java



The idea here is, "What is the most complicated way to achieve the
effect of 'java MyClass' from the shell?".

------- Start of forwarded message -------
From: Stefan Monnier <[email protected]>
Newsgroups: comp.infosystems.www.servers.unix,comp.lang.java.misc
Subject: Re: CGI using Java
Date: 22 Oct 1996 22:23:43 -0400
Organization: Yale University, Department of Computer Science, New Haven, CT
Message-ID: <[email protected]>
References: <[email protected]> <[email protected]>

"Life is hard... and then you die." <[email protected]> writes:
> Brandon Fuller wrote:
> > Example:
> > 
> > #!/bin/sh
> > java MyClass   (need something like < stdin to this process)

Have you tried your example ?
I guess not, else you'd have learned that it works.

>   cat - | java MyClass

You could also do something like:

        > cat - | perl -pe 's/1/1/' | (echo 1 >/dev/null ; cat) | java MyClass

but somehow, I'm really wondering what would be the point.


        Stefan

PS: BTW, "cat -" is synonym with "cat"
------- End of forwarded message -------

-- 
This message comes to you as a service of the mph-humor list.  No
claims of real or perceived humor are offered.
Sumbissions:  [email protected] 
Information:  http://mph124.rh.psu.edu/~hunt/mph-humor.html