aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/fics_autorun
blob: fb77fefa6d94b205fb26c3dd0f494692e3d691ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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