Welcome to iraf.net Tuesday, April 30 2024 @ 07:09 PM GMT
FSBoyden |
08/21/2006 03:05PM (Read 8049 times)
|
|
|
Status: offline
Registered: 06/07/2006
Posts: 95
|
Hi AllIt may sound a stupid Q, but how would you call DS9 from the loginuser.cl. I would like to skip the step where I have to start DS9, and run it in the bg, before every IRAF session. I am not that familiar with coding in c-shell.ThanxPat
|
|
|
|
fitz |
08/21/2006 03:05PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Add the line[code:1:1283b3b109]!ds9 &[/code:1:1283b3b109]someplace before the final 'keep'. This will spawn it in the bg for you.-Mike
|
|
|
|
FSBoyden |
08/21/2006 03:05PM
|
|
|
Status: offline
Registered: 06/07/2006
Posts: 95
|
Hi allJust want to Q this. You can start DS9 from the loginuser.cl. Now how can you exit DS9 automatically when you "logout" of IRAF. Usually when I logout, I have to close DS9 afterwards' or beforehand. (Clicking on the little cross.) Just for funThanx
Pat
|
|
|
|
fitz |
08/21/2006 03:05PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Pat,Assuming you installed the XPA tools when you got DS9 (if not, you can get them from the DS9 page), you can create a logout.cl file in the same dir as your login.cl that contains[code:1:e4397a3a9d]!xpaset -p ds9 quit[/code:1:e4397a3a9d]
-Mike
|
|
|
|
FSBoyden |
08/21/2006 03:05PM
|
|
|
Status: offline
Registered: 06/07/2006
Posts: 95
|
Hi MikeCOOL!!!! :wink: Thanx
Pat
|
|
|
|
rohit |
08/21/2006 03:05PM
|
|
|
Status: offline
Registered: 06/01/2006
Posts: 86
|
This seems a great idea. But how do I create loginuser.cl file? Is it different from login.cl or an extension of it? I created a loginuser.cl file separate from login.cl file. This was done by copying the script from one of the tutorials on iraf.net. But after saving the file next to login.cl, IRAF would not work. Please help.
|
|
|
|
fitz |
08/21/2006 03:05PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
A loginuser.cl file can be created with any text editor. The only requirements are that it be in the same directory as the login.cl, have valid CL commands, and that the last command in the file be 'keep'. If IRAF isn't starting there may be a syntax error in the file. To open DS9 from this file you can use[code:1:479a5ebe01]!ds9 &[/code:1:479a5ebe01]if the 'ds9' command is in your path and installed in some place like /usr/local/bin. Or[code:1:479a5ebe01]!open -a ds9 &[/code:1:479a5ebe01]should do it if DS9 is in the Applications folder on a mac.The reason you'd use a loginuser.cl is because a MKIRAF overwrites the login.cl, this is one way to preserve e.g. your settings for printers, frame buffer sizes, etc.-Mike
|
|
|
|
| |
|
Content generated in: 0.19 seconds |
|