PicPoc Posted October 28, 2021 Share Posted October 28, 2021 (edited) Hi ! On unRAID, .bash_history is not saved on reboot, I try to save history : # history | sed 's/^ *[0-9]* *//' > /boot/custom/bash_history 1) by CLI, no problem : -rw-rw-rw- 1 root root 4.0K Oct 28 12:18 bash_history 2) On a script, destination file is zero K : -rw-rw-rw- 1 root root 0K Oct 28 12:20 bash_history I'm afraid there's no solution ? Please tell me I'm wrong. Thanks ! Edited October 28, 2021 by PicPoc Quote Link to comment
PicPoc Posted November 19, 2021 Author Share Posted November 19, 2021 No idea ? Quote Link to comment
Frank1940 Posted November 19, 2021 Share Posted November 19, 2021 On 10/28/2021 at 6:22 AM, PicPoc said: # history | sed 's/^ *[0-9]* *//' > /boot/custom/bash_history The # marks this line as a comment line in a bash file. Don't know if this is the problem or not... Quote Link to comment
PicPoc Posted November 19, 2021 Author Share Posted November 19, 2021 Thanks but, no. It's just to say "It's a shell command". Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.