View Single Post
b-man's Avatar
Posts: 549 | Thanked: 502 times | Joined on Feb 2008 @ Bowling Green Ohio (united states)
#3
Thanks! , now i won't need to worry about needing to re-upload the file after 90 days

Btw, this is a minor update for cdeb2-killall, it uses a loop prosess instead of a re-loading prosess so you could have up to 100 windows open and it will close them. - if you were crazy enough to have that many open.

Code:
#!/bin/sh
###
#This small program is  designed to kill any prosess related to cdeb2.sh and
#functions as a daemon in the background by running until cdeb2 gives a exit 
#status of 1.
{
case "$1" in
start)
	export i=1
	while [ "$i" -le 100 ]
	do
		if fuser /usr/bin/cdeb2.sh; then 
			killall cdeb2.sh
		else
			exit 0
		fi
			i=`expr $i + 1`
	done
;;
stop)
	exit 0
;;
*)
	echo "Usage: $0 { start | stop }"
	exit 1
esac
}
done
exit 0
I also want to add that i am now trying to work on a way to run Cdeb2 in other operating systems such as Debian, Deblet, Ubuntu, Gentoo and, Fedora.
__________________
I'm an advanced user and a bit of a modder.
----------------------------------------------
I am involved with Mer, Deblet, and NITdroid.
My ports/creations/hacks: GNOME (for Deblet), Cdeb2», Ubuntu, playable flash games in the "Get Started" app, DBS, ect...


enhanced fedora port has been canceled in favor of NITDebian (TBA)

Last edited by b-man; 2008-11-10 at 02:17.