delta_kuadrant |
11/18/2008 08:44AM (Read 4152 times)
|
|
|
Status: offline
Registered: 01/26/2008
Posts: 28
|
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.04any suggestion?thank you beforehandRegards,Agus Triono P.J
|
|
|
|
fitz |
11/18/2008 08:44AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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
|
|
|
|
delta_kuadrant |
11/18/2008 08:44AM
|
|
|
Status: offline
Registered: 01/26/2008
Posts: 28
|
Dear Mike,I've check the sgidispatch command and it's there in /usr/local/bin
[code:1:640f406784]ecl> !which sgidispatch
/usr/local/bin/sgidispatch
[/code:1:640f406784]
and I've also put the /usr/local/bin path into my bash_profile
[code:1:640f406784]
# 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
[/code:1:640f406784]
but It didn't workany suggestion?Agus Triono P.J
|
|
|
|
fitz |
11/18/2008 08:44AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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
|
|
|
|
delta_kuadrant |
11/18/2008 08:44AM
|
|
|
Status: offline
Registered: 01/26/2008
Posts: 28
|
Indeed, I issued a 'gflush' command. Below is what I actually did :
I've started with something simple :
[code:1:edc2a74705]ecl> contour dev$pix
[/code:1:edc2a74705]
and then I typed :
[code:1:edc2a74705]ecl> =gcur
[/code:1:edc2a74705]
followed by :
[code:1:edc2a74705]:.snap epsf
:.gflush
q
[/code:1:edc2a74705]
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 persistAgus Triono P.J
|
|
|
|
fitz |
11/18/2008 08:44AM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
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
|
|
|
|
delta_kuadrant |
11/18/2008 08:44AM
|
|
|
Status: offline
Registered: 01/26/2008
Posts: 28
|
Dear Sir,
Below is the output from 'ecl> !env' command
[code:1:7301d2a556]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
[/code:1:7301d2a556]
the sgiXXXX.eps file is in the current directory, not in /tmpRegards,Agus Triono P.J[quote:7301d2a556][/quote:7301d2a556]
|
|
|
|