XPLOR-NIH version 2.19 C.D. Schwieters, J.J. Kuszewski, Progr. NMR Spectr. 48, 47-62 (2006). N. Tjandra, and G.M. Clore J. Magn. Res., 160, 66-74 (2003). http://nmr.cit.nih.gov/xplor-nih based on X-PLOR 3.851 by A.T. Brunger User: schwitrs on: bach (sgi ) at: 11-Jan-08 12:15:49 X-PLOR>display "in XPLOR1" "in XPLOR1" X-PLOR>python use the function python_end() to return to xplor. [stdin](1): print "in python1" in python1 [stdin](5): import time [stdin](6): tm=time.localtime(time.time()) [stdin](7): (x_time,x_date)=xplor.command("""set echo off messages off end [stdin](11): """,("STIME","SDATE")) X-PLOR>set echo off messages off end X-PLOR> X-PLOR>end [stdin](12): (hr,min,sec) = map(int,x_time.split(":")) [stdin](13): x_daysec = sec + 60*(min + 60*hr) [stdin](14): daysec = tm[5] + 60*(tm[4]+60*tm[3]) [stdin](15): if x_daysec-daysec>1: [stdin](17): (day,mon,yr) = x_date.split('-') [stdin](18): if int(day)!=tm[2] or int(yr)!=tm[0]%100 or mon!=time.strftime("%b"): X-PLOR>display "in XPLOR2" "in XPLOR2" X-PLOR>cpyth "print 'in python2'" in python2 X-PLOR>stop HEAP: maximum use= 1120575 current use= 1102913 X-PLOR: total CPU time= 1.5064 s X-PLOR: entry time at 12:15:49 11-Jan-08 X-PLOR: exit time at 12:15:53 11-Jan-08