Links: Clear Distractions and Books, Google Buzz, Two Tales from the Trenches, and More.

by Kelle on February 12, 2010

{ 1 comment… read it below or add one }

1 Ian J. Crossfield February 12, 2010 at 4:55 pm

I stick the following lines at the end of my IDL_START file to keep a timestamped journal file of every IDL session. The files are saved in the current working directory, but you could prepend a path to save them all to a ‘logs’ folder somewhere.

; Always create a journal file with today's date/time
fs = '(I2.2)'
caldat, julday(), mon, d, y, h, min
datstr = string(y, format='(I4.2)') + $
string(mon, format=fs) + $
string(d, format=fs) + '_' + $
string(h, format=fs) + $
string(min, format=fs) + '.jrn'
journal,datstr

Reply

Leave a Comment

Previous post:

Next post: