How to use FileDescriptors other than in out and err?

I have a Unix process I am shelling out to using runTime.exec(command) which requires two input streams and two output streams (file descriptors). How can I do this in java when there is only in, out and err available without using physical files.
For information the process is GnuPG (GPG) and the command line will be something like:
./gpg command-fd 98 status-fd 2 -o- --decrypt
This uses standard in for the encrypted file content and std out for the decrypted data. The command (98) and status(2) file descriptors are for sending and receiving command messages. Note that 98 is an arbitary number.

What about FIFO's (named pipes)?

Similar Messages

  • I updated my 4s to ios7 and the phone is now completly dead. I tried to restore it with the new itunes but it won't restore. If you can't get the download be glad! Anyone have any ideas other than going out and buying a new Samsung phone?

    I updated my 4s to ios7 and the phone is now completly dead. I tried to restore it with the new itunes but it won't restore. If you can't get the download be glad! Anyone have any ideas other than going out and buying a new Samsung phone? I don't really need a paper weight.

    No not jailbroken. After the update which took about 45 minutes. The phone went black. Dead. Wouldn't restart. Using the new itunes I tried to restore it. It went through the motions; the white Apple and progress bar appeared on the iphone screen. Then I got a message "Itunes has detected an iphone in recovery mode. You must restore this iphone before it can be used with itunes." Then the phone went completly dead again. I Repeated the process and got the same results. Is there another way to restore the phone if it's dead, besides itunes?

  • I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    go to settings
    then to store
    tap your id then click sign out
    then sign back in and you should be fine

  • I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    I have a huge amount of my memory used by 'other' than photos and music - to my knowledge, there is nothing there apart from a few songs and photos and 5 podcasts. What could it be? How could I get rid of this 'other' stuff and get the memory back?

    See -> What is "Other" and what can I do about it? by Kappy.
    Clinton

  • I have upgraded to Mac OS X v10.7 Lion and when I log into mail I can't find my mailboxes other than inbox, draft and sent how do I get my other mailboxes back?

    I have upgraded to Mac OS X v10.7 Lion and when I log into mail I can't find my mailboxes other than inbox, draft and sent how do I get my other mailboxes back?

    Lion is a bit of a memory hog - kernel_task will use quite a bit and Safari is known to use more; you can't do anything about the system, but changing to Firefox may help a little. The best way to deal with it is to increase your RAM; the required minimum is just that: the minimum. My Macbook would keep crashing and beachballing until I upped the RAM to 4 GB. RAM is inexpensive right now - check out OWC (macsales.com) or Crucial.com; both reputable RAM vendors with lifetime warranties. You won't regret it.
    As for iDVD - I purchased the retail iLife 11 disk because of iDVD (because I use that a lot) - it's available at online resellers, the Apple Store, and ebay.

  • I have Airport Extreme as the base unit and an Express unit in a room separated by a brick wall to improve signal. Express shows a green light indicating signal but my iPad does not perform well. How can I improve other than hardwire ethernet connection?

    I have Airport Extreme as the base unit and an Express unit in a room separated by a brick wall to improve signal. Express shows a green light indicating signal but my iPad does not perform well. How can I improve other than hardwire ethernet connection?

    Other suggestions, and more info about the nature of the problem, may be in this Apple tech note.
    http://support.apple.com/kb/HT1365
    For example, you might find that the brick wall is not the only problem. There may be other devices pumping out enough wireless interference to be making things even worse.
    I agree with Bob Timmons that Ethernet is best and most reliable. And that powerline (which I use) is easier and potentially faster than wireless...but only if your power lines do not have electrical devices plugged in which produce electrical noise on the line. Powerline will be slower than Gigabit Ethernet.
    Ethernet cable is the only way to ensure that the signal goes directly there in a shielded way for a clear fast signal. Wireless and powerline are much slower because of all the other things the signal has to fight past to get to the other device.

  • When using citrix through safari on my iPad , how do I keep it from timing out and having to keep logging back in when I don't use it for awhile?

    When using citrix thru safari on my iPad , how do I keep from getting timed out and having to log in again after not using it for awhile ?

    I know nothing about this app but I just did a very quick search on the app support forum for Citrix and saw something about enabling a setting called Caffiene. Have you tried that? It overrides the auto lock from what I saw in the discussion.
    I'm just not sure why the iPad would sleep at all if it the Auto Lock is set to never. The only other things that I could think to try is to restart the iPad and then see if the Auto Lock setting works properly or maybe quit all apps and then try again. That really shouldn't matter but there might be an app that is overriding the auto lock for some reason. Or even reset the device - hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears. The iPad system might just need a kick in the butt.
    Edit - after rereading your post I see that you are going through Safari. The suggestion that I found was for the Citrix app. I assume the Caffiene setting is not available through Safari.

  • How to arrange pictures other than by date

    How to arrange pictures other than by date

    You can select a folder of images or a batch and create an album. You can then drag the photos around and they remain fixed in your chosen order within the album.
    Also if you switch from thumbnail view (click the display button near top right in Organizer) to Folder Location view and select an individual folder from the left hand pane, the files will usually be displayed in file name order.

  • Drawing with an effect other than Alpha Transparency and XOR

    Hello,
    I'm looking for a way to draw images (Or anything else for that matter) with simple effects other than the Alpha and XOR effects, such as Multiply, Subtract and Bitwise AND. I've realized it has something to do with the setComposite function, but I haven't figured out how to get further from there, and the documentation didn't seem very clear. This is my first time using Java fro anything graphical; most of my projects are done in PHP and C++.
    Could anyone help me with this, perhaps with an example?
    Thank you very much!

    I'm using Graphics2D. I have one big BufferedImage and other smaller once which I use as sprites. I'm rendering the sprites to the big buffer using drawImage. I need an efficient way to render some of the sprites with an ink effect such as subtract. I know it's possible to do it with a XOR effect by placing setXORMode(c1) before the drawImage function.

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • TS4436 How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?

    How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?

    Hi, I want to thank you for all your information regarding my questions about sending more than one photo to Facebook. I did have to stop in at Verizon (where I bought my iPhone) to find out why I did not have a choice to choose Facebook with the export icon. The tech had to go into my setting and enable Facebook to recognize my iPhone. When I upgraded to iso7 somehow it could not recognize Facebook. Once he did this for me I was able to follow your advice and your answer solved my question. Thank you

  • Easy Cost Planning in a currency other than Cont Area and comp code curren

    Hi,
        I want to do the easy cost planning in a currency which is other than controlling area and company code currency.
      But I am getting the option of only these two currencies only.
    Any idea how to do it?
    Example:
      Controlling Area currency :INR
    Company Code Currency : AED
    Planning Currency to be used for Easy Cost Planning :USD
    Regards,
    B P Singh

    Hello,
    You may try to go to transaction CT04 - Characteristics. There in tab BASIC DATA you choose Data Type - Currency Format. In field Currency enter the required currency. Save the characteristic.
    Next step is to go to CKCM - Models for Easy Cost Planning. Open the Costing model and add line with the created characteristic.
    Good luck, Aleksandra

  • How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?

    Hi!
    Question about the problem mentioned in subject.
    I have configured that JNLP opens with 1.5 version, both versions are enabled in Java Control Panel Runtime Settings but when I try to start a desktop java console says:
    Java Web Start 1.5.0_22
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    And the opening of the desktop creates an exception:
    Java Web Start - Invalid Argument Error
    TooManyArgumentsException[ Too many arguments supplied: {C:\WINDOWS\Temporary, Internet, Files\Content.IE5\....
    I'm trying to open my desktop with 1.5 version and other programs with 1.6 version. What is it that I still need to do? I'm kind of confused with this. Some of my collagues have succeeded with this and some doesn't, with the same configuration.
    So the question is, how to use multiple JREs with IE8 so that one application uses 1.5 version and others 1.6 version?
    Br,
    Katri
    Edited by: ka**** on 09-Mar-2011 01:16
    Edited by: ka**** on 09-Mar-2011 03:16

    ka**** wrote:
    ..Question about the problem mentioned in subject.No "Using multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8" is a statement. To transform it to a question would be something like "How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?".
    Once you can come up with an actual question, I might look at this more closely.

  • How to use the Variants in SAP Transportation and what is its use ?

    Hi experts,
    How to use the Variants in SAP Transportation and what is its use & How to create a variant in SAP ?
    Can anybody answer this ?
    Regards,
    Shakti

    Hi,
    If you are asking about "slection vairants" in SPRO settings of "shipment cost document" then
    When it is activated,
    each user can have his own slecetion  and list criteria for
    1. List shippment costs:calculation
    2. List shippment costs: settlement
    This can be directly saved from VI01 screen by the user.
    from environment> lists
    This is user specific only.
    Hope this helps.
    Regards,
    Sharan

  • Everytime i click on the view in itunes button/link on the itunes website so that i can download apps, nothing happens. I accendentally  clicked on the button other than open itunes and now i cant fix it

    everytime i click on the view in itunes button/link on the itunes website so that i can download apps, nothing happens. I accendentally  clicked on the button other than open itunes and now i cant fix it

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>iTunes and App Stores and sifnout and sign back in
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

Maybe you are looking for

  • High Precision Voltage Source to Calibrate 24 bit ADC

    I am trying to find a cost effective way to calibrate a 24 ADC with a voltage source. The ADC has 3 differential inputs.It ranges from 40, 20, 10, 5, 2, 1, 0.5Vpp It natively samples at 32 kHz, But I will be taking a 1 second sample as a reading for

  • Are ipods cross-platform?

    I am thinking of buying my first classic ipod, I have a IMac as pictured. Most of my tracks and CD imports and favourite video/films are on it. However I can only get dial up at home, my laptop is windows, and a local hotspot would enable me to downl

  • Must have iPad 3 (New iPad) accessories?

    I'm getting ready to take the plunge on my first iPad. Are there any "must have" accesories that I'll need? Here's what I'd like to get: Leather portfolio style case (preferably one that flips up) Screen protector Keyboard (can I use an iMac wireless

  • CoreAudio Error -2 when I launch GarageBand

    Every time I launch GarageBand 3 I get a message informing me that "Error code -2 was returned by CoreAudio driver". Does this mean there is something wrong with my GB installation? Or with the system software installation? Or...?

  • My i phone 3s does not sync to laptop

    my i phone does not sync to my laptop