aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-07 21:31:49 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-07 21:31:49 +0100
commit79b59f9b30fb6a1fdf8c3efb446271f7cb00d434 (patch)
treef6ade4ccbc3af20d825edacfd12b5da8ded8d240 /scripts
FICS 1.6.2
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fics_autorun14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/fics_autorun b/scripts/fics_autorun
new file mode 100755
index 0000000..fb77fef
--- /dev/null
+++ b/scripts/fics_autorun
@@ -0,0 +1,14 @@
+#!/bin/csh
+limit stacksize unlimited
+while (1)
+ ps aux | grep "fics -p 5000" | grep -v grep >! fics.pid
+ if (-z fics.pid ) then
+# echo "doing mv stuff and running fics"
+ cat console.txt >>! console.old
+ rm console.txt
+ fics -p 5000 >>&! console.txt
+ endif
+# echo "sleeping..."
+ sleep 10
+end
+