So, you can just create the bash script and make it availabe at your home directory so everyone interested will just add the path to use as "mkcomment That is wonderfull" instead of "/home/barnold/bin/make-comment That is wornderfull" and yes everyone interested will need to have an .comments file with chmod 666 and the path to the .comments file chmod 755 and the bash script could be as simple as: #!/bin/bash
# Check if a comment is provided if [ -z "$1" ]; then echo "Usage: make-comment 'Your comment here'" exit 1 fi
# Get the current directory current_dir=$(pwd)
# Define the path to the .comments file comments_file="$current_dir/.comments"
# Append the comment to the .comments file echo "$1" >> "$comments_file"
There are a lot of ways to accomplish it but yeah just do it and people will use it if they want to.
Best regards, hate at tilde
On Sat, Jun 28, 2025 at 05:41:49PM +0700, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/, you want to make a comment to say how wonderful it is.
In your account on club, you create a text file comment.txt saying "Love your page!". Then at a shell prompt you run
$ ~barnold/bin/make-comment comment.txt
which adds the contents of your comment.txt to a comment page, say http://tilde.club/~barnold/comments.html. Since you were logged in at club, your comment is automatically attributed to you.
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH