Re: Problem with amtape "hanging" when forked from Java
Nathan Stratton Treadway <[email protected]>
| Newsgroups | gmane.comp.archivers.amanda.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Mar 08, 2022 at 18:27:47 -0500, Robert Heller wrote: > > I've written a Java program that goes through vaulted tapes and forks amtape > (using Runtime.getRuntime().exec(()), and when a non-existant tape label is > asked for, amtape "hangs". I cannot figure out why or how to get amtape to > just exit with an error (which I can then handle). Does it still hang if you pass an argument "-ointeractivity=''" when you exec amtape? If it does still hang, what do "lsof -p" and "strace -p" show on the amtape process while it's stuck? Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - [email protected] - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239