Welcome to iraf.net Thursday, May 02 2024 @ 02:56 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Journaling in IRAF?
   
baryonicminority
 06/29/2006 09:03PM (Read 4514 times)  
+----
Newbie

Status: offline


Registered: 06/29/2006
Posts: 2
Hi all,I was wondering if IRAF has a journaling function that records sessions, similar to the one that IDL has.Any help or advice would be much appreciated.Thanks,- a.s.

 
Profile Email Website
 Quote
fitz
 06/29/2006 09:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I'm not quite sure its the same thing, but there are CL parameter to control logging of a session, i.e. [code:1:e9e1337820]
cl> lpar cl
:
:
(keeplog = no) Record all interactive commands in logfile?
(logfile = "home$logfile.cl") Name of the logfile
(logmode = "commands nobackground noerrors notrace") Logging control
[/code:1:e9e1337820]When the 'keeplog' parameter is enabled the history is kept in the file specified by 'logfile'. The 'logmode' param lists all the things currently loggable, so to enable if just[code:1:e9e1337820]cl> cl.keeplog=yes[/code:1:e9e1337820]Turn it off when you're done and see home$logfile.cl for results. There is also an 'stty playback' mode that we used to use for demos and test scripts.Cheers,
-Mike

 
Profile Email
 Quote
itso
 06/29/2006 09:03PM  
+----
Newbie

Status: offline


Registered: 07/18/2008
Posts: 9
helpful but somehow it doesn't work for me.I did these settings and at some point it was working. But then it all stopped. I went back to the cl parameters just to realize that they have been reset. After I put them back to keeping a log, it didn't work at all. This is what I am doing:
[code:1:14714e1df5]cl> lpar cl
:
:
(keeplog = yes) Record all interactive commands in logfile?
(logfile = "HDR$logfile.cl") Name of the logfile
[/code:1:14714e1df5]And my login.cl file contains
[code:1:14714e1df5]set imdir = "HDR$"
[/code:1:14714e1df5]
so that my logfile is kept separately in each folder in which I work.Any suggestions?Thanks!
Itso

 
Profile Email
 Quote
fitz
 06/29/2006 09:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The "HDR" logical path is only used for image pixel files and isn't an equivalent to the current-working-directory. If you want to keep the log in the current dir, just set the 'logfile' param to be the filename 'logfile.cl' and it will be written to the current directory (even after you change directories).Cheers,
-Mike

 
Profile Email
 Quote
itso
 06/29/2006 09:03PM  
+----
Newbie

Status: offline


Registered: 07/18/2008
Posts: 9
Nice! Works again! Do you have any idea why it has switched off and does it usually switch off when one logs out and then logs in again?Edit: Yes, it does switch off when I log out. Is there a way to make logging permanent?

 
Profile Email
 Quote
fitz
 06/29/2006 09:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The CL params apparently aren't learned, but that seems like a bug to me and I'll check up on it. In the meantime, you can simply reset the values in your login.cl/loginuser.cl file, e.g. add the following before the 'keep' statement:[code:1:d1ee90d000]
cl.keeplog=yes
cl.logfile=log.cl[/code:1:d1ee90d000]
-Mike

 
Profile Email
 Quote
itso
 06/29/2006 09:03PM  
+----
Newbie

Status: offline


Registered: 07/18/2008
Posts: 9
Great! This seems to work now. Just one comment to others that might try to use this solution.The correct code that has to be in the login.cl file should be:
[code:1:3063dc479f]cl.keeplog=yes
cl.logfile="log.cl"[/code:1:3063dc479f]
That is, the name of the logfile should be in quotation marks. Otherwise it reports an error and IRAF refuses to start.Thanks again!
Itso

 
Profile Email
 Quote
   
Content generated in: 0.19 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login