OK, so I had asked a question a few months ago about running a script on a Sun box and the answer was to use something along the lines of:
Process exec = Runtime.getRuntime().exec("script");
Now, I'm attempting to execute the following command:
postprint filename.tmp | lpr
through Java...and no matter how I do it using the above, I cannot get it to execute, yet when I do it just on the command line, it works fine.
I read some of what's
here and saw there there might be an issue with me piping the output into lpr, so I tried using just lpr, and that didn't work either.
Anyone have any ideas why this might be failing?