add new bins

This commit is contained in:
2025-10-20 19:17:11 +02:00
parent 7aaf25ce85
commit 458847c4af
5 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
file=/tmp/vm-switch.txt
# Ensure the file exists
touch "$file"
echo "Listening on $file ..."
tail -n0 -F "$file" | while read vm; do
[ -n "$vm" ] && echo "Switch requested: $vm" && ~/bin/work "$vm" &
done