Sorry maybe I don't understand exactly what you mean - I truly am not an expert in IRAF or UNIX, simply just a user
I will try to explain the situation more clearly (AFAIK).Usually I start IRAF by clicking a launcher, which was set to launch the command
[code:1:30d9b83778]xgterm -sb -bg black -fg darkkhaki -title "Image Reduction and Analysis Facility
(IRAF)" -e "ecl" &[/code:1:30d9b83778]Now the xgterm window is opened and CL is activated (the working directory is my home directory at /home/hanin) [code:1:30d9b83778] IRAFNET PC-IRAF Revision 2.13-BETA2 Wed Apr 19 21:21:13 MST 2006
This is the IRAFNET version of IRAF V2.13 supporting PC systems.
_ _
(_) _ _ __ _ / _| _ _ ___ | |_ http://iraf.net
| || '_|/ _` || _| | ' \ / -_)| _| IRAF Software and
|_||_| \__,_||_| ()|_||_|\___| \__| User Support Welcome to IRAF. To list the available commands, type ? or ??. To get
detailed information about a command, type `help <command>'. To run a
command or load a package, type its name. Type `bye' to exit a
package, or `logout' to get out of the CL. Please visit http://iraf.net if you have questions, to report problems,
or would like to help to support this project. The following commands or packages are currently defined: ace. dimsum. guiapps. mxtools. plot. system.
color. fitsutil. images. nlocal. proto. tables.
ctio. fuzzy. language. nmisc. softools. utilities.
dataio. gemini. lists. noao. spectime. vol.
dbms. gmisc. mscred. obsolete. stsdas. websvc.ecl>
[/code:1:30d9b83778]Then I try to snap from a graphics output (irafterm):
[code:1:30d9b83778]ecl> implot dev$pix[/code:1:30d9b83778]In irafterm, I executed
[code:1:30d9b83778]:.snap epsf
:.gflush
q[/code:1:30d9b83778]Now I'm back to the xgterm window. File sgi7711.eps is generated with 0 bytes of size.To make sure the sgidispatch is in its place,
[code:1:30d9b83778]ecl> !which sgidispatch
/usr/local/bin/sgidispatch[/code:1:30d9b83778]So it's in the directory as indicated by you. The default shell I used in Ubuntu is bash. I found the .bashrc and .profile file but don't know which part of it should be edited.As you suggested, I tried to copy the contents of $iraf/unix/bin.redhat to $iraf/unix/bin.linux, but there's no file in the bin.redhat directory
[code:1:30d9b83778]
ecl> !ls $iraf/unix/bin.redhat
ecl> !ls $iraf/unix/bin.linux
alloc.e libboot.a mkpkg.e sgi2uapl.e sgi2uqms.e xyacc.e
f2c.1 libboot_p.a rmbin.e sgi2ueps.e sgi2xbm.e
f2c.1.gz libcompat.a rmfiles.e sgi2uhpgl.e sgidispatch.e
f2c.e libf2c.a rpp.e sgi2uhplj.e wtar.e
f2c.h libos.a rtar.e sgi2uimp.e xc.e
generic.e libos_p.a sgi2gif.e sgi2uptx.e xpp.e
[/code:1:30d9b83778]There's the situation and I'm still confused why it won't work...FYI I usually grab a jpg image from the graphics output using take-screenshot programs and converted it to eps afterwards. Sorry if my question about this direct eps grabbing doesn't seem to be important, but I'm just curious.
Many thanks,
Hanin.