i have been executing processing in servlets for a while now, but i
think i may have been stumped by this one..
i am trying to run the mail command (on a risc running aix 4.3.3) to
send mail.. the process seems to hang until i kill it when java
attempts to execute it, but it works fine if i execute the command line
myself.. i get nothing from getInputStream() or getErrorStream()..
this is what i have:
...
String sCreateMail[] = new String[11];
sCreateMail[0] = "/usr/bin/mail";
sCreateMail[1] = "-s";
sCreateMail[2] = "\"request";
sCreateMail[3] = "for";
sCreateMail[4] = sEmpName;
sCreateMail[5] = "(";
sCreateMail[6] = sFamily;
sCreateMail[7] = ")\"";
sCreateMail[8] = "-c";
sCreateMail[9] = sEmpEmail;
sCreateMail[10] = "</web/servlets/logs/ids_created/id." + iRandomNum;
Process mailUser = Runtime.getRuntime().exec(sCreateMail);
...
(the random number is determined earlier in the program)
any help would be appreciated..
craig
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html