Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: misc compctl



And here is ssh, nslookup, other network stuff and gdb:


hosts=(fixed list of my computers)
or
hosts=($(echo ls $(echo | nslookup | sed -n '1s/^[^.]*\.\(.*\)$/\1/p') | nslookup 2>&1 | sed '1,4d' | awk '{print $1}' | grep -v '\.$' | grep -v '>' | sort))
or something...

compctl -k "($hosts -l -n -a -x -i -t -v -q -f -e -c -p -L -R -C -o)" \
	-x "c[-1,-l]" -u \
	- "c[-1,-i]" -f \
	- "c[-1,-e]" -k "(~ none)" \
	- "c[-1,-c]" -k "(idea des 3des tss arcfour none)" \
	- "c[-1,-p]" -k ports \
	- "c[-1,-L] c[-1,-R] c[-1,-o]" -k "()" \
	-- ssh

compctl -k hosts \
	-x "n[1,-class=]" -k "(any in chaos hesiod)" \
	- "n[1,-query=]" -k "(a cname hinfo md mx mb mg minfo ns ptr soa txt uinfo wks any)" \
	-- + -k "(-query= -all\  -class= -d2\  -nod2\  -debug\  -nodebug\  -defname\  -nodefname\  -domain= -ignoretc\  -noignoretc\ )" -Q -S '' \
	nslookup

compctl -k hosts \
	-x "C[-1,[^-]*] p[2,-1]" -k ports \
	-- + -k "(-8 -E -L -a -d -e -l -n -r)" \
    	telnet

compctl -k "($hosts -s -d -l -L -n -r -R -v -i -I -t)" ping

compctl -x 'N[-1,@]' -k hosts - 's[]' -u -S '' -- finger talk

compctl -g "*(*)" -k "(-help -nx -q -batch -cd -f -b -tty -exec -se -core -symbols -c -x -d)" \
	-x "p[1],C[-2,(-cd|-directory|-core|-c|-se|-exec|-symbols|-command|-x)]" -g "*(*)" -k "(-help -nx -q -batch -cd -f -b -tty -exec -se -core -symbols -c -x -d)" \
	- "C[-1,(-cd|-directory)]" -g '*(-/)' \
	- "C[-1,(-core|-c)]" -g 'core*' \
	- "C[-1,(-se|-exec)]" -g '*(*)' \
	- "C[-1,(-symbols|-command|-x)]" -g '*' \
	- "C[-1,[^-]*]" -g "core*" \
	-- gdb



Messages sorted by: Reverse Date, Date, Thread, Author