Yes,the bin file /home/alfresco_installation/Alfviral/alf_data/contentstore/2018/3/9/14/46/aeaa46c1-9af54d1d-9750-24656ad3da5b.bin exists and the clamscan is working directly properly and returning the correct value.
But not through the /usr/bin/clamscan command from java class
And secondly,I don't understand what do u mean by proving without the path.
Regards
Ayushi
Hi!
Without path is:
alfviral.command.exec=clamscan
El 9 mar. 2018 3:50 p. m., "ayushi.agrahari" <community@alfresco.com>
escribió:
Alfresco Community
<https://community.alfresco.com/?et=watches.email.thread>
Re: clamscan command from the java program gives the exit code 127
respuesta de Ayushi Agrahatri
<https://community.alfresco.com/people/ayushi.agrahari?et=watches.email.thread>
en Alfresco Content Services (ECM) - Ver la discusión completa
<https://community.alfresco.com/message/829605-re-clamscan-command-from-the-java-program-gives-the-exit-code-127?commentID=829605&et=watches.email.thread#comment-829605>
Okie I will try it and will let u know
Thanks fegor
On doing
alfviral.command.exec=clamscan
it still is showing the status as 127 means that the command is not found.
The logs are
the value of command is[clamscan, /home/alfresco_installation/Alfviral/alf_data/contentstore/2018/3/6/18/3/d66b45ad-992e-4154-b844-c1b8e0cdb03e.bin]
2018-03-12 13:40:00,338 DEBUG [security.antivirus.CommandScan] [DefaultScheduler_Worker-2] ++++++the value of res is++++++++127
but on directly running the command,the command is working perfectly.
clamscan /home/alfresco_installation/Alfviral/alf_data/contentstore/2018/3/6/18/3/d66b45ad-992e-4154-b844-c1b8e0cdb03e.bin
the output is
/home/alfresco_installation/Alfviral/alf_data/contentstore/2018/3/6/18/3/d66b45ad-992e-4154-b844-c1b8e0cdb03e.bin: Eicar-Test-Signature FOUND
----------- SCAN SUMMARY -----------
Known viruses: 6434688
Engine version: 0.99.2
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 12.821 sec (0 m 12 s)
But, the Alfresco user and this user is same?
ayushi@ayushi-GA-78LMT-S2PT:/opt/alfresco_installation$ ls -ltr
total 4
drwxr-xr-x 15 root root 4096 Mar 12 13:09 Alfviral
Ok, I test in my system in some days and I say you...
Hi fegor,
are you able to replicate the problem in your system and have you find any solution to the above stated problem.I am in urgent need to solve this problem.
Best regards,
Ayushi Agrahatri
Hi Ayushi Agrahatri
I test in my system this weekend (I make this project only in my free time) and send my results.
Best regards,
Fegor
Hi fegor,
Plz test it and let me know the results.
Best regards,
Ayushi Agrahari
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.