More shell questions (and GNU screen)
Peter Corlett
abuse at cabal.org.uk
Wed Mar 9 15:17:38 GMT 2011
On Wed, Mar 09, 2011 at 10:25:19AM +0000, David Cantrell wrote:
[...]
> But what I'd like is that when it opens the second terminal on the
> remote host, it do this in there:
> run a script
> drop me at a shell prompt
> *and for that script that it just ran to be in the terminal history*
Make a temporary copy of the script, then point HISTFILE at that before
launching the shell:
abuse at kali:~$ echo 'foobar' >/tmp/test
abuse at kali:~$ HISTFILE=/tmp/test bash
[cursor up]
abuse at kali:~$ foobar
More information about the london.pm
mailing list