• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Return Program Results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Documentation for 5.2.2 (From: "Colin O'Brien" <email@hidden>)

  • Prev by Date: Documentation for 5.2.2
  • Next by Date: SQL UPPER() and named fetch spec
  • Previous by thread: Documentation for 5.2.2
  • Next by thread: Re: Documentation for 5.2.2
  • Index(es):
    • Date
    • Thread