Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Content

Table of Contents
 

Submit job in batch

Code Block
bsub -o mylog0 -q psanaq ls -l
bsub -o mylog1 -q psanaq 'ls -l'
bsub -o mylog2 -q psanaq "ls -l"

bsub -o mylog -q psanaq curl -s "https://pswww-dev.slac.stanford.edu/calib_ws/"
[dubrovin@summitdev-login1:~]$ bsub -o mylog -q batch -W 1:00  -P CHM137 curl -s "https://pswww-dev.slac.stanford.edu/calib_ws/"

Useful system files

Code Block
~/.ssh/known_hosts

...

Code Block
\ls -1 /reg/d/psdm/MEC > file.txt

Or similar with adding some content:

Code Block
\ls -1 /reg/d/psdm/MEC | awk '{print "cdb convert -e " $1}' > test_convert_mec.sh

Save / re-direct text from command line in file

Code Block
echo "abcd1234" > t.t

 

 

 

Make movie from images

Code Block
convert _tmp*.png _tmp.gif

#or in python
os.system("convert _tmp*.png _tmp.gif")

...