add data source for openvt

master
Mr. Robot 3 years ago committed by GitHub
parent 386bb0ffa8
commit 6efa5ad2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"
}
]
}
}
Loading…
Cancel
Save