 | | From: | K2 | | Subject: | Exit values from CLI use? | | Date: | Mon, 20 Dec 2004 05:34:31 GMT |
|
|
 | I'm trying to debug an problem I'm getting when attempting to run a mutt process from a Runtime.getRuntime().exec() call from with a java class. The command sent works find if run directly from the Linux shell environment but fails with some unknown condition from the java process. It's reporting an exit code of 1 and I'm not sure what this means. If anyone has any experience using mutt in this manner I'd be appreciative of any information you could provide.
regards, Karl -- If emailing directly please edit out the cleverly hidden message in the domain name portion of my email address.
|
|
 | | From: | Sven Guckes | | Subject: | Re: Exit values from CLI use? | | Date: | 20 Dec 2004 09:18:56 GMT |
|
|
 | * K2 [2004-12-20]: > I'm trying to debug an problem I'm getting when attempting to run a mutt > process from a Runtime.getRuntime().exec() call from with a java class. > The command sent works find if run directly from the Linux shell > environment but fails with some unknown condition from the java process.
sounds like a java problem...
> It's reporting an exit code of 1 and I'm not sure what this means.
"error"
> If anyone has any experience using mutt in this manner > I'd be appreciative of any information you could provide.
well, if your goal is not about mutt itself then your request is off topic here - see?
but if this is about improving mutt itself then i'm sure you can provide some more info on your version and your enviroment and its use which has led to the error, right?
hint: mutt-1.5.6> ./configure --help | grep debug 64: --enable-debug Enable debugging support
Sven
|
|
 | | From: | K2 | | Subject: | Re: Exit values from CLI use? | | Date: | Mon, 20 Dec 2004 14:28:31 GMT |
|
|
 | Sven Guckes wrote: > sounds like a java problem...
What makes you so sure about this? Because mutt's failing when executed from a java process? It could very easily be some sort of permission problem generated by mutt when run in this manner. Heck, I don't know, that's why I'm asking.
> > >>It's reporting an exit code of 1 and I'm not sure what this means. > > > "error"
So there are no other exit codes but ? 0 an 1? If so, then thanks for the answer.
> > >>If anyone has any experience using mutt in this manner >>I'd be appreciative of any information you could provide. > > > well, if your goal is not about mutt itself > then your request is off topic here - see?
Well Mr. Guckes, I'm not all that sure of the nature of the error - see? Therefore my question. And it's not too unlikely that mutt gets used in this manner by others, hopefully successfully. More then a couple of folks use Java to perform this sort of action.
> > but if this is about improving mutt itself > then i'm sure you can provide some more info > on your version and your enviroment and > its use which has led to the error, right?
well unfortunately I can't seem to find a comp.mail.mutt.withjava group so I thought someone on this group just may have attempted this as well. I'm sorry if you find this "off topic" but oh well, I can't do any thing about about that now, but thanks for setting me straight. I'll go get flamed by a Java group now.
Thanks
|
|
 | | From: | Sven Guckes | | Subject: | Re: Exit values from CLI use? - 0 1 2 127 | | Date: | 20 Dec 2004 16:14:03 GMT |
|
|
 | * K2 [2004-12-20]: > Sven Guckes wrote: >> sounds like a java problem... > > What makes you so sure about this? Because mutt's failing > when executed from a java process? It could very easily be > some sort of permission problem generated by mutt when run > in this manner. Heck, I don't know, that's why I'm asking.
you didn't provide a lot info - so who can tell but yourself?
>>>It's reporting an exit code of 1 and I'm not sure what this means. >> "error" > > So there are no other exit codes but 0 and 1? > If so, then thanks for the answer.
maybe looking at the code might help? quick search reveals this:
mutt-1.5.6> grep -c exit *.[ch] | grep -v :0 156 matches
after reducing the lines to those without a number after the "exit" i get these lines:
code occurrences 0 8x 1 28x 2 1x 127 5x
exactly 42 lines. coincidence? hmm...
anyway, if you really want to know what these exit codes mean then grep is your friend. :-)
>>>If anyone has any experience using mutt in this manner >>>I'd be appreciative of any information you could provide. >> well, if your goal is not about mutt itself >> then your request is off topic here - see? > > I'm not all that sure of the nature of the error - see? > Therefore my question.
we don't know your goal here - see? therefore my answer.
> And it's not too unlikely that mutt gets used in > this manner by others, hopefully successfully. > More then a couple of folks use Java > to perform this sort of action.
really? i wasn't aware of that.
is anyone else here using java to perform this sort of action? hello? anyone??
Sven
|
|