:.snap problem under Cygwin
delta_kuadrant wrote on Nov 18, 2008
Hi again,
I have a problem with zero-size eps file in IRAF under cygwin (:.snap command)
I've tried every trick that mentioned in this forum regarding this matter but it didn't work, but it worked in my IRAF installation under ubuntu 8.04
any suggestion?thank you beforehand
Regards,
Agus Triono P.J
I have a problem with zero-size eps file in IRAF under cygwin (:.snap command)
I've tried every trick that mentioned in this forum regarding this matter but it didn't work, but it worked in my IRAF installation under ubuntu 8.04
any suggestion?thank you beforehand
Regards,
Agus Triono P.J
Mike Fitzpatrick wrote on Nov 18, 2008
Hardcopy is accomplished by executing the 'sgidispatch' command from the device command specified in the graphcap file. Sgidispatch is one of the command links created when you run the install script, but because of the way it is executed the directory where you install these commands (the "local bin directory" in the install script for commands like 'cl', 'mkiraf', etc) must be defined in the default path for your particular shell.
This command directory is normally /usr/local/bin, but if you specify the path only in your .login file it might not be found by the basic shell used to execute the command. Be sure the path is specific in your .cshrc if you use a C-shell, or the .profile/.bahsrc if you use Bash as your shell (default on Cygwin).
Otherwise, remember that a "gflush" is required to flush the graphics output before you can get it. This can be executed at the CL prompt as the "gflush" command, or if you are still in cursor mode use the ":.gflush" command.
-Mike
This command directory is normally /usr/local/bin, but if you specify the path only in your .login file it might not be found by the basic shell used to execute the command. Be sure the path is specific in your .cshrc if you use a C-shell, or the .profile/.bahsrc if you use Bash as your shell (default on Cygwin).
Otherwise, remember that a "gflush" is required to flush the graphics output before you can get it. This can be executed at the CL prompt as the "gflush" command, or if you are still in cursor mode use the ":.gflush" command.
-Mike
delta_kuadrant wrote on Nov 18, 2008
Dear Mike,
I've check the sgidispatch command and it's there in /usr/local/bin
and I've also put the /usr/local/bin path into my bash_profile
but It didn't work
any suggestion?
Agus Triono P.J
I've check the sgidispatch command and it's there in /usr/local/bin
ecl> !which sgidispatch
/usr/local/bin/sgidispatch
and I've also put the /usr/local/bin path into my bash_profile
# Set PATH so it includes user's private bin if it exists
# if [ -d "${HOME}/bin" ] ; then
# PATH=${HOME}/bin:${PATH}:/usr/local/bin
# fi
but It didn't work
any suggestion?
Agus Triono P.J
Mike Fitzpatrick wrote on Nov 18, 2008
Did you issue a gflush command? What was the device name you used? If you don't specify a device the value of 'stdplot' is used. Note that in your .bashrc file the '#' at the start of the lines comments out the change so it doesn't really have effect, however the "!which" indicates the path is correct.
-Mike
-Mike
delta_kuadrant wrote on Nov 18, 2008
Indeed, I issued a 'gflush' command. Below is what I actually did :
I've started with something simple :
and then I typed :
followed by :
after I executed '.snap' command, the cursor changed into an hourglass (or watch) and still like that even the ':.snap epsf - done' notification appeared.
I also deleted a'#' at the start of lines but the problem persist
Agus Triono P.J
I've started with something simple :
ecl> contour dev$pix
and then I typed :
ecl> =gcur
followed by :
:.snap epsf
:.gflush
q
after I executed '.snap' command, the cursor changed into an hourglass (or watch) and still like that even the ':.snap epsf - done' notification appeared.
I also deleted a'#' at the start of lines but the problem persist
Agus Triono P.J
Mike Fitzpatrick wrote on Nov 18, 2008
Could you post the output of a "cl> !env" command? Environment variables such as 'host' might be conflicting in how the path to the converter is being found. The SGIDISPATCH actually is used only to spawn the SGI2UEPS translator and this is where the environment comes in.
Lastly, is it the 'sgiNNNN.eps' file in the current directory that is empty, or the /tmp/sgkNNNNN temp file?
-Mike
Lastly, is it the 'sgiNNNN.eps' file in the current directory that is empty, or the /tmp/sgkNNNNN temp file?
-Mike
delta_kuadrant wrote on Nov 18, 2008
Dear Sir,
Below is the output from 'ecl> !env' command
the sgiXXXX.eps file is in the current directory, not in /tmp
Regards,
Agus Triono P.J
Below is the output from 'ecl> !env' command
REMOTEHOST=
HOMEPATH=\Users\@PJ
APPDATA=C:\Users\@PJ\AppData\Roaming
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man:/usr/share/qt3/doc/man
HOSTNAME=DarkStar
HOST=DarkStar
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
TERM=xterm
SHELL=/bin/bash
WINDIR=C:\Windows
iraf=/iraf/iraf/
WINDOWID=14680077
PUBLIC=C:\Users\Public
PROGRAMDATA=C:\ProgramData
QTDIR=/usr/lib/qt3
USERDOMAIN=DarkStar
ALLUSERSPROFILE=C:\ProgramData
OS=Windows_NT
GROUP=None
XTERM_SHELL=/bin/bash
!::=::\
USER=@PJ
COMMONPROGRAMFILES=C:\Program Files\Common Files
TEMP=/cygdrive/c/Users/@PJ/AppData/Local/Temp
IMTDEV=inet:5137:127.0.0.1
HOSTTYPE=i386-cygwin
TERMCAP=xterm-r6|xterm|xterm X11R6 version:am:km:mi:ms:xn:co#80:it#8:li#50:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:
USERNAME=@PJ
COLUMNS=80
mach=cygwin
PROCESSOR_LEVEL=6
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/texmf/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem
_=/usr/bin/env
FP_NO_HOST_CHECK=NO
SYSTEMDRIVE=C:
PWD=/home/@PJ
SAN_DIR=C:\Program Files\SiSoftware\SiSoftware Sandra Professional Business XII.SP1
USERPROFILE=C:\Users\@PJ
QMAKESPEC=/usr/lib/qt3/mkspecs/cygwin-g++
LOGONSERVER=\\DARKSTAR
LINES=24
!C:=C:\cygwin\bin
LOCALAPPDATA=C:\Users\@PJ\AppData\Local
PROCESSOR_ARCHITECTURE=x86
IRAFBIN=/iraf/iraf/bin.cygwin/
XTERM_LOCALE=C
XTERM_VERSION=Cygwin 6.8.99.903(237)
HOME=/home/@PJ
SHLVL=6
OSTYPE=cygwin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
HOMEDRIVE=C:
IRAFARCH=cygwin
VENDOR=intel
COMSPEC=C:\Windows\system32\cmd.exe
PROMPT=$P$G
MACHTYPE=i386
LOGNAME=@PJ
SYSTEMROOT=C:\Windows
TMP=/cygdrive/c/Users/@PJ/AppData/Local/Temp
PROCESSOR_REVISION=0f0d
CVS_RSH=/bin/ssh
PRINTER=Adobe PDF Converter
arch=.cygwin
MAKE_MODE=unix
PROGRAMFILES=C:\Program Files
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
DISPLAY=:0.0
NUMBER_OF_PROCESSORS=2
SESSIONNAME=Console
COMPUTERNAME=DARKSTAR
XAUTHORITY=/home/@PJ/.Xauthority
the sgiXXXX.eps file is in the current directory, not in /tmp
Regards,
Agus Triono P.J
Last post on Nov 18, 2008