Hi Tomasz Kojm,

Thanks a lot.

I tried with the below command it worked fine.
p = rt.exec(new String[]{"sh", "-c", CLAM_SCAN + destFilePath +
File.separatorChar + "\"" + fileName + "\"" });

Regards,
M.Sudhakar

On Fri, Dec 19, 2008 at 7:42 AM, Tomasz Kojm <[email protected]> wrote:
> On Fri, 19 Dec 2008 07:34:04 -0500
> "Sudhakar Marimuthu" <[email protected]> wrote:
>
>> Hi ,
>> i am running clamscan from java as given below.
>> i am getting 56 as a return code.
>>
>> Param with Value
>> ---------------------------
>> destFilePath = /home/sudhakar/
>> fileName=Test Scan.doc (filename with space)
>
> You should precede the whitespace with the backslash:
> fileName=Test\ Scan.doc
>
> --
>   oo    .....         Tomasz Kojm <[email protected]>
>  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
>     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
>       //\   /\              Fri Dec 19 13:42:23 CET 2008
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to