SkillAgentSearch skills...

Fwa

A simple file watcher for OpenBSD

Install / Use

/learn @PeterHajdu/Fwa
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Introduction

fwa is a simple file change notifier keeping unix philosophy in mind. It is intended to be a clean and simple application to watch file changes on systems using kqueue. It does not execute any commands, just prints out the changed file's name. To handle the events, read fwa's output and act as you wish.

Installation

git clone http://github.com/peterhajdu/fwa
cd fwa
make install

Examples

Simply execute one command

fwa * | while read; do make test; done

Execute commands specific for a file type

fwa * | while true; do handle; done

Where handle might look like this.

#!/bin/sh
read line

if echo $line | grep .c; then
	echo Handling c file.
	make test
fi

if echo $line | grep .md; then
	echo Handling markdown file.
	cat $line
fi
View on GitHub
GitHub Stars14
CategoryDevelopment
Updated15d ago
Forks2

Languages

C

Security Score

90/100

Audited on Mar 26, 2026

No findings