Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Save history with a script...

Featured Replies

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 by PicPoc

  • 4 weeks later...
  • Author

No idea ?

:)

  • Community Expert
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...

  • Author

Thanks but, no. It's just to say "It's a shell command". ;)

 

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.