From 6efa5ad2fc6c87463beb481930447be190ae5e5c Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Fri, 22 Jan 2021 21:23:14 +0100 Subject: [PATCH] add data source for openvt --- data/openvt.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/openvt.json diff --git a/data/openvt.json b/data/openvt.json new file mode 100644 index 0000000..d9cf843 --- /dev/null +++ b/data/openvt.json @@ -0,0 +1,10 @@ +{ + "functions": { + "sudo": [ + { + "description": "The command execution is blind (displayed on the virtual console), but it is possible to save the output on a temporary file.", + "code": "TF=$(mktemp -u)\nsudo openvt -- sh -c \"[command] >$TF 2>&1\"\ncat $TF\n" + } + ] + } +}