Tag Archives: Bash

RDC Shortcut

Since I do occasionally have to fiddle with a Windows server, and there are little things about Microsoft’s Remote Desktop Client that bug me (only one session open at a time, for example), I wondered if the matter was scriptable somehow. Here’s one way (after installing rdesktop via DarwinPorts): #!/bin/bash # RDC="/opt/local/bin/rdesktop -a24 -g 1024x768" [...]
Also tagged | Comments closed

A bash script to mess with the containing Terminal.app window

I found it, but I still don’t have a clue as to why I wrote it to begin with: function setgeometry { local rows=`expr "$1" : '[0-9]*x([0-9]*)$'` local cols=`expr "$1" : '([0-9]*)x[0-9]*$'` case $TERM in Apple_Terminal) window=`osascript -e 'tell app "Terminal" to get first window'` #echo $window osascript -e 'tell app "Terminal"' -e "set number [...]
Also tagged , | Comments closed