mercredi 6 décembre 2017

How to open a file and have the contents be the output of an executed command?

For example: When open/read /var/command_result.txt would have its contents be the results of executing sysctl -x -B 16 kern.arandom. So each time /var/command_result.txt is opened/read, the content is a different random number.

Thanks




Aucun commentaire:

Enregistrer un commentaire