#!/bin/bash NO_ARGS=0 OPTERROR=65 CONFIGPATH="$HOME/etc" if [ $# -eq "$NO_ARGS" ] then echo "USAGE: `basename $0` options (-wl)"; exit $OPTERROR; fi case $1 in -u ) /usr/lib/ICAClient/wfica $CONFIGPATH/matlab.ica;; --help ) echo "USAGE:\t-w for WINE\n\t-u for Unix\n";; -w ) /usr/bin/wine /home/stuart/.wine/drive_c/windows/profiles/stuart/Start\ Menu/Programs/wfica32.exe etc/matlab.ica;; esac echo "[Encoding] InputEncoding=UTF8 [WFClient] ClientName=WI_wL9KVrDFKaJnVcNXU ProxyFavorIEConnectionSetting=Yes ProxyTimeout=30000 ProxyUseFQDN=Off RemoveICAFile=yes TransparentKeyPassthrough=Local TransportReconnectEnabled=On Version=2 VirtualCOMPortEmulation=Off [ApplicationServers] MatLab 2007= [MatLab 2007] Address=128.210.13.20:1494 AutologonAllowed=ON CGPAddress=*:2598 ClearPassword=4F5F94ECB7B0A6 ClientAudio=Off DesiredColor=4 DesiredHRES=1024 DesiredVRES=768 Domain=\F34683D838043394 InitialProgram=#MatLab 2007 Launcher=WI LongCommandLine= ProxyTimeout=30000 SSLEnable=Off SessionsharingKey=4-basic-none-ics.purdue.edu-spulliam-mps4 TWIMode=On TransportDriver=TCP/IP Username=spulliam WinStationDriver=ICA 3.0 [Compress] DriverNameWin16=pdcompw.dll DriverNameWin32=pdcompn.dll [EncRC5-0] DriverNameWin16=pdc0w.dll DriverNameWin32=pdc0n.dll [EncRC5-128] DriverNameWin16=pdc128w.dll DriverNameWin32=pdc128n.dll [EncRC5-40] DriverNameWin16=pdc40w.dll DriverNameWin32=pdc40n.dll [EncRC5-56] DriverNameWin16=pdc56w.dll DriverNameWin32=pdc56n.dll" > $CONFIGPATH/matlab.ica; echo finished