Matthew on Nostr: I got the cleanup script that I was writing working as I wanted it to. Implemented it ...
I got the cleanup script that I was writing working as I wanted it to. Implemented it on a server and scheduled it to run every day at a certain time.
The screenshot does not show the whole script, just the end part. It removes some specific things to clear up disk space, calculates how much disk space was freed, then write an entry to a log file with that information.
I learned a few more things. Putting into practice what I learn.
#Linux #programming #bash
Published at
2026-06-20 04:03:51 UTCEvent JSON
{
"id": "be7008537956aed0a1b7c34a4cfe29b27779fa06bb9a09c46ed0aac006f25f6c",
"pubkey": "b8e4bdf064008eab98416329cf8f063206eaaba9e98f3f34b89cc4f10c60ad56",
"created_at": 1781928231,
"kind": 1,
"tags": [
[
"t",
"bch"
],
[
"t",
"bitcoincash"
],
[
"t",
"linux"
],
[
"t",
"programming"
],
[
"t",
"bash"
],
[
"imeta",
"url https://blossom.primal.net/1d5a612de86b2efc17cbbf4ee3c7a8867c4e148c0000edb81b586a08c2e25b73.png"
],
[
"client",
"BCHNostr",
"31990:df5bcaba9e74cc1764c9773ae160299dde5acf79416e2c96758dba225e6707cc:bchstr24-1",
"wss://relay.damus.io"
]
],
"content": "I got the cleanup script that I was writing working as I wanted it to. Implemented it on a server and scheduled it to run every day at a certain time. \n\nThe screenshot does not show the whole script, just the end part. It removes some specific things to clear up disk space, calculates how much disk space was freed, then write an entry to a log file with that information. \n\nI learned a few more things. Putting into practice what I learn. \n\n#Linux #programming #bash\n\nhttps://blossom.primal.net/1d5a612de86b2efc17cbbf4ee3c7a8867c4e148c0000edb81b586a08c2e25b73.png",
"sig": "d95b263d3dbc7a2924b8760aaa7efd926240b582e2187f72598fd5eca3b8cb112696270e356c3f54f45a58d72152d580adf7f6e59a78935a4771355be92cc038"
}