summaryrefslogtreecommitdiff
path: root/john_pnm.cgi
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 03:27:52 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 03:27:52 +0100
commit0965f8d378cc6481a260f136cfa6883e8c1116bc (patch)
treef6d0ebaa8b94da02047c0a174828022411b4912d /john_pnm.cgi
parentd4dd44e4908bc0d6531f0128413a5946e9512ed7 (diff)
launch john
Diffstat (limited to 'john_pnm.cgi')
-rwxr-xr-xjohn_pnm.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/john_pnm.cgi b/john_pnm.cgi
new file mode 100755
index 0000000..2e3ba3a
--- /dev/null
+++ b/john_pnm.cgi
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+JOHN_DIR="/home/rebecca/shed/gnom/john/ads"
+
+johnfile="$JOHN_DIR/$(ls "$JOHN_DIR"|shuf -n1)"
+anytopnm <"$johnfile" | ppmtoppm | pnmscale -height=114
+