One needs to be root or have sudo privileges to do this:
sudo shutdown -rv 2
-rv 2 means :
r is restart after shutdown;
v means verbose
2 means in 2 minutes
One needs to be root or have sudo privileges to do this:
sudo shutdown -rv 2
-rv 2 means :
r is restart after shutdown;
v means verbose
2 means in 2 minutes
we checked all 3 machines for which version of python on each
literally typing
‘which python’
gives me (at least on all three hosts) /usr/bin/python this is not super helpful because it doesnt say which version.
ls -als /usr/bin/python on all three hosts is also not that helpful as it just spits back the python executable named python.
ls -als /usr/bin | grep python gives me every file in there with a name including python. Then I see that “python” and python2.6 have identical size and date on all three hosts
so the final answer is that all three are using 2.6 by default
Caution: Note that astropy is only on python 2.7 and so we should actually use 2.7 . Yuping and/or Bruce installed 2.7 in order to “make” psrchive . (See Yuping’s post under “python” category.)
using breakpoints on idlde over vncviewer (as opposed to chicken-of-the-vnc) was fraught. The usual key combinations would not place breakpoints anywhere. But I eventually learned that:
DOUBLE CLICKING ON GRAY BORDER AT VERY LEFT OF DESIRED LINE TOGGLES BREAKPOINT
Here is a harder way that I learned before above red easy way:
Here is an even harder way to do it from keyboard:
help,/breakpoint will give a list of existing breakpoints
cd, ‘full path to desired directory’ will change idl’s current directory from users home directory (the default) to another. remember apostrophes CASE SENSITIVE
printd prints the current directory
IDL> printd
Current Directory: /data/psrdata/arecibopuppi/B1913+16/2019Aug
Directory stack is empty.
breakpoint,/set, ‘filename inside of current idl directory path [see printd above to discover current path value] ‘, 150 (use apostrophes, note final value is linenumber) CASE SENSITIVE
i think i did not see the red circle on line 150 of idlde until i recompiled.
check out help,/breakpoint to see a list of current breakpoints, including their “index” which can be used in some other breakpoint commands like breakpoint,/clear,1 (index 1)
IDL> help,/breakpoint
Index Line Attributes File
1 150 Pro=PLOTADAYSRMTOT /data/psrdata/arecibopuppi/B1913+16/2019Aug/plotAdaysRMtot.pro
Helen Du figured out the following for finding where (if) astropy is on our network:
For Ubuntu,
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
…is not correct.
It will point you to /usr/lib/pythonX.X/dist-
This folder only contains packages your operating system has automatically installed for programs to run.
On ubuntu, the site-packages folder that contains packages installed via setup_tools\easy_install\pip will be in /usr/local/lib/pythonX.X/dist-
The second folder is probably the more useful one if the use case is related to installation or reading source code.
If you do not use Ubuntu, you are probably safe copy-pasting the first code box into the terminal.