Run Shell Commands via HTML on a client machine

Hi guys, so, I have a server running an sqlite database which is accessed by many client machines working as hardware testers, whenever something fails and needs to be replaced the operator would have to enter the Serial Number of the part being replaced as well as some other data. and additionally, i would like to store some log files from the tester into this database, extracting this logfiles is not easy as it would involve typing long commands on a terminal by people who know nothing about linux. and i preffer not having them play with commands because it would complicate things.

Is there a way that i can just have some button in the server's webpage that executes a set of commands on the client side to grab these files and put them in a tarball so the operator only has to attach them like an email attachment for the database to store them?

Kind of like this one, but the script would be executed on the client side:

Thanks all :slight_smile: