Return Program Results
Return Program Results
- Subject: Return Program Results
- From: Scott Lopatin <email@hidden>
- Date: Tue, 4 Nov 2003 11:44:06 -0500
I am writing a program using ImageMagick and I had one quick question.
The first step in my scaling process is to get the width and height of
the image. I have successfully done this on the command line using the
following command:
/usr/local/bin/identify -format "%w"
/Users/lopatins/Desktop/image.jpg
The above command will return the width of the file. I am running
commands successfully using:
Process process = Runtime.getRuntime().exec(command);
Where command equals the string to run.
What I don't know is how to return the output from the command line to
a String variable that I can use in my program. Do you know how to pull
the output of the program back into WebObjects?
Thanks very much in advance for any help you can provide.
Thanks,
Scott
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.