X
X
xandr0s2011-08-12 20:14:48
linux
xandr0s, 2011-08-12 20:14:48

How to write the history of commands entered via ssh in dd-wrt?

The wl500 router is flashed with dd-wrt (linux). When connecting via ssh, you have to enter long commands every time. I would like an analogue of history, so that the history of the entered commands is saved between connections. Is it real?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
okazymyrov, 2011-08-12
@okazymyrov

cat > /tmp/run.sh << EOF
echo "1"
echo "2"
EOF
chmod +x /tmp/run.sh

As a solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question