open lxterminal -> execude command -> not in history
Posted: Thu Apr 29, 2021 8:07 am
Hello!
I would likt to
I tried by this "run_cmd.s"h script to
But the history is
How can I solve this problem?
Thank you.
I would likt to
- open a new lxterminal window.
call/execute a script in it (terminal keeps open)
see this script call command in the bash.history
Code: Select all
lxterminal -e "/home/andi/Scripts/run_cmd.sh '/home/andi/Scripts/run_cmd.sh'; bash"
- list the history,
add the command to bash.history (history -s $1)
list history.
Code: Select all
#!/bin/bash
echo parameter $1
echo aaaaaaaaaaaaaa
history
echo bbbbbbbbbbbbbbbb
history -s $1
echo cccccccccccccccccc
history
echo xxxxxxxxxxxxx
- empty
has one entry
How can I solve this problem?
Thank you.