W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2004

Problem running HTML Tidy from Java on Linux Platform

From: Miao Ting <miao_ting@yahoo.com.sg>
Date: Thu, 8 Jan 2004 11:07:21 +0800 (CST)
Message-ID: <20040108030721.52257.qmail@web60609.mail.yahoo.com>
To: html-tidy@w3.org
Hi, 
 
I have previously tried running HTML Tidy from java on Windows 2000. However when i tried to my system to Linux(I have downloaded the Linux version, and tried running it, It works) I have problem executing HTML Tidy.
 
In Win 2000
Process p = rt.exec("cmd /c cd " +mainPath +" && " +cmd);
 
In Linux -- > Does Not work
Process p = rt.exec("sh -c "+mainPath +"/" +cmd);

cmd is the commad to call the tidy program with the necessary arguments.
 
Do you know how can i execute this?
 
Thanks!!
 

 Y! Asia presents Lavalife
- Get clicking with thousands of local singles today!
Received on Wednesday, 7 January 2004 22:08:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:53 UTC