Hi Kris, Kris Hagel <hagel@comp.tamu.edu> wrote concerning lsf output [Fri, 27 Sep 2002 13:32:53 -0500] ---------------------------------------------------------------------- > Hello, > Does anyone on this list know how to get the lsf output. I have been > trying bsub .... -o myfile and I don't get anything. In addition, I > cannot get bsub .... -N -u hagel@comp.tamu.edu to send me any mail. Is > there something obvious I am missing??? I really need the output from > the programs and if this could be solved, I could get it without > modifying the programs. What I generally do, which works quite well, is to have a job skeleton file like: #!/bin/bash #BSUB -j cholm_@run@ #BSUB -o @logdir@/run00@run@.out #BSUB -e @logdir@/run00@run@.err #BSUB -q brahms_cas #BSUB -N unset DISPLAY if test ! -d /home/cholm ; then mkdir -p /home/cholm ; fi /bin/cp -vf @indir@/run00@run@.root /home/cholm/run00@run@.root /usr/bin/time -v @bratmain@ @config@ -v 5 -r @run \ -i /home/cholm/run00@run@.root \ -o /home/cholm/rdo00@run@.root \ -H /home/cholm/hist00@run@.root /bin/cp -vf /home/cholm/rdo00@run@.root @outdir@/rdo00@run@.root /bin/cp -vf /home/cholm/hist00@run@.root @outdir@/hist00@run@.root /bin/rm -f /home/cholm/run00@run@.root All the `@...@' are filled in by sed in a script like #!/bin/sh indir=/brahms/data07/cholm/run/merged outdir=/brahms/data07/cholm/rdo/merged logdir=/brahms/data07/cholm/rdo/log config=/brahms/u/cholm/share/cholm_app/scripts/fooConfig.C while test $# -gt 0 ; do sed -e 's|@run@|$1|' \ -e 's|@indir@|${indir}|' \ -e 's|@outdir@|${outdir}|' \ -e 's|@logdir@|${logdir}|' \ -e 's|@config@|${config}|' \ < skel.in > tmp.lsf bsub < tmp.lsf done And I can do ./submit_it <run list> This sends mail to the `normal' email of the user. See also brahms_app/cholm_app/runs/bin/{fluct,cholmruns}.in and so on. Otherwise, read the man(1) pages of bsub(1). Note that you can use `bpeek' to peek at the output of a running process. Yours, ____ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 305 ____| Email: cholm@nbi.dk Web: www.nbi.dk/~cholm | |
This archive was generated by hypermail 2b30 : Mon Sep 30 2002 - 09:44:27 EDT