Home arrow static arrow Java Programming [Archive] - Runtime.exec() .....help
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Runtime.exec() .....help
This topic has 1 reply on 1 page.

Posts:40
Registered: 3/22/04
Runtime.exec() .....help  
Jul 26, 2004 12:00 PM



 
hello all

Can anybody tell me please...
how can i invoke wget(command line browser) from a java programme.
I want to invoke wget and need to put the output (ie.,HTML file) into a file and parse thet HTML file.

the wget command line options will be like this
wget --proxy-user="username" --proxy-passwd="password" --post-data="cmm=next&hd=10%2007%202004&cmmcd=28&dt=2004" http://www.agmarknet.nic. in / cmm datrap.asp

This will work fine on commandline and output the asp file in the same directory where i invoke the command.

I want to invoke this from a java programme.
 

Posts:24,036
Registered: 2/3/03
Re: Runtime.exec() .....help  
Jul 26, 2004 12:12 PM (reply 1 of 1)



 
[url=http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]Navigate yourself around pitfalls related to the Runtime.exec() method[/url]
 
This topic has 1 reply on 1 page.