# ica
# Connect to a specific Citrix server from the command line
#
if [ -z $1 ]
then
echo
echo Syntax: ica hostname
echo
echo please enter a hostname
echo
kill -SIGINT $$
fi
icafile=tmp.ica
echo [WFCLient] > $icafile
echo Version = 2 >> $icafile
echo [ApplicationServers] >> $icafile
echo \; Name below will appear in the title bar of ICA client >> $icafile
echo \; It MUST be identical to the connectoid header >> $icafile
echo $1 = >> $icafile
echo \; connectoid header is in brackets below\; MUST match friendly name above >> $icafile
echo [$1] >> $icafile
echo \; Server IP address or DNS name goes here >> $icafile
echo Address = $1 >> $icafile
echo TransportDriver = TCP/IP >> $icafile
echo Username = >> $icafile
echo Compress = On >> $icafile
echo PersistentCacheEnabled = On >> $icafile
echo InitialProgram = >> $icafile
echo WinStationDriver = ICA 3.0 >> $icafile
echo DesiredColor = 0 >> $icafile
echo DesiredHRES = %width% >> $icafile
echo DesiredVRES = %height% >> $icafile
open $icafile
Here is how I use it.
ica (hostname or ip)I copied the Windows Script below and ported it to OSX.
http://www.windowsitpro.com/article/scripting/connect-to-a-citrix-server-from-the-command-line
No comments:
Post a Comment