no......its on solaris...
--- Nathan Revo <[EMAIL PROTECTED]> wrote:
> Is your server on a windows machine?
>
> -----Original Message-----
> From: Manish Shah [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 21, 2000 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: **URGENT***
>
>
> Hye all
>
> I am kinda new to Java Programming as such and so to
> Jsp and servlet. I have a couple of
> questions........
>
> [1] I get exceptions when i try to run unix command
> from my servlet To be precise about the error, this
> is
> what I get on the JSWDK1.0.1 startserver screen:
>
> java.io.IOException: CreateProcess: rlpq
> -H101.20.35.78 error=0 at
> java.lang.Win32Process.create(Native Method) at
> java.lang.Win32Process.<init>(Unknown Source) at
> java.lang.Runtime.execInternal(Native Method) at
> java.lang.Runtime.exec(Unknown Source) at
> java.lang.Runtime.exec(Unknown Source) at
> java.lang.Runtime.exec(Unknown Source)
>
> I am performing the following command: rlpq
> -H101.20.35.78 which will query the printer
> 101.20.35.78 and check the status of the printer.
> However it works perfectly when I execute in a
> stand-alone application and I get the above
> mentioned
> IOException when I execute the same command from the
> Servlet.
>
> The code which I try to carry out is......
>
> String[] tokenizedCom = new String[4]; String s;
> tokenizedCom[0] = "rlpq"; tokenizedCom[1] =
> "-H101.20.35.78"; try { Process myProcess =
> Runtime.getRuntime().exec(tokenizedCom);
> //DataInputStream in = new DataInputStream(new
> //BufferedInputStream(myProcess.getInputStream()));
> }
> catch (IOException e) { e.printStackTrace(); }
>
> I kinda am not sure as to what the problem might be.
>
> If possible, do send in a sample code alias to the
> above code.
>
> [2] I want to upload file from the JSP page to my
> servlet. One solution I found was to use the
> oreilley
> servlet package. I downloaded that. But I dont know
> how to use it. I tried to put that in the import
> statement, but not of much help. I even tried to
> modify my startserver.bat file on JSWDK1.0.1 by
> setting the class path.
>
> Please advice on it.
>
> Thanks a lot
>
> Manish
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from
> anywhere!
> http://mail.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to