dcsimg
runtime.exec not working
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   a_a
Posted On:   Tuesday, December 18, 2001 06:27 PM

Hi

I am trying to execute this command


runtime.exec("sh -c "ls -rtl | head -2 | tail -1"");


commands like this dont give proper result


How do I deal with these sort of commands



Is there a better solution?

Re: runtime.exec not working

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, December 19, 2001 07:32 AM

What is the bahavior that you are experiencing?



If you are not getting any output, take a look here, here, or look up "runtime.exec" on the FAQ pages.



-chris
About | Sitemap | Contact