récuperer une réponse du shell linux dans une page http
j'ai developper une servlet qui éxecute une commande shell linux et qui doit récuperer une page http qui contiendra le résultat retourné par cette commande afin de l'envoyer au client qui a demmander de faire cette opération.
voila la commande linux et son résultat:
<CODE>
1-[root@www ~]# cd /var/www/html/horodatage/
2-[root@www horodatage]# openssl ts -query -config configuration/openssltsa-conf.cnf -data /root/Desktop/Capture.png -sha1 -out temporaire/requests/requete1.tsq
3-[root@www horodatage]# openssl ts -query -in temporaire/requests/requete1.tsq -text Version: 1 Hash Algorithm: sha1
Message data:
0000 - ad 8b a2 cd 2a 27 ab 4d-66 71 34 29 ba 3a 47 f9 ....*'.Mfq4).:G.
0010 - 3e 70 ac 83 >p..
Policy OID: unspecified
Nonce: 0x3BADF3E9911FC1AC
Certificate required: no
Extensions:
4-[root@www horodatage]# openssl ts -verify -data /root/Desktop/Capture.png -in temporaire/jetons/jeton1.tsr -token_in -CAfile authority/root_authority/cacert.crt -untrusted authority/time_stamp_authority/tsacert.crt Verification: OK
</CODE>
merci d'avance.