unix lint utility with java, using pipes
thufir
hawat.thufir at gmail.com
Mon Apr 4 09:58:28 UTC 2016
I was perusing the tee utility, and came across this example:
lint program.c | tee program.lint
This displays the standard output of the command lint program.c at the
computer, and at the same time saves a copy of it in the file
program.lint. If a file named program.lint already exists, it is deleted
and replaced.
https://en.wikipedia.org/wiki/Tee_%28command%29#Unix-like_2
I would want the OS to simultaneously run a console program, and save the
output to a log file, as above. Emphasis on *Operating System*, not the
JVM.
can lint be used with java, instead of a c program? Or, would you need a
c program to invoke the java program?
something like:
lint foo.jar | program.lint
this requires an extra pipe, perhaps?
java -jar foo.jar | lint <??> | program.lint
something like that? Not sure how to pass variable through a pipe, if
that's the correct terminology.
thanks,
Thufir
More information about the ubuntu-users
mailing list