hejb
March 2, 2010, 5:58pm
1
Hello,
It seems I cannot run a script in the background for root 5.26. What I do is (tcsh shell):
but it is suspended immediately:
It is ok if I do not add “&” at the end. But I need “&”. There is no such problem for root 5.24 (on the same machine). I guess something have been changed recently?
I am using a SLC4 machine, the binary of slc4_amd64_gcc34 is copied from lxplus. The following script is used to do setup:
setenv ROOTSYS /exp/software/ROOT/5.26.00/slc4_amd64_gcc34/root
setenv PATH ${ROOTSYS}/bin:${PATH}
setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${LD_LIBRARY_PATH}
rehash
The problem is also present in the svn trunk version. Any ideas?
Thanks a lot, Jibo
system
March 3, 2010, 6:36pm
2
[quote=“hejb”]… It seems I cannot run a script in the background for root 5.26. What I do is (tcsh shell):
[quote]root -b -q test.C > test.log &[/quote]but it is suspended immediately:
hejb
March 4, 2010, 10:41am
3
Thanks a lot for the reply.
This doesn’t help:
[quote]% root -b -q signal.C >& test.log &
[6] 27342
%
[6] + Suspended (tty output) root -b -q signal.C >& test.log[/quote]
while “unbuffer” does:
[quote]% unbuffer root -b -q signal.C > test.log &
%
[9] Done unbuffer root -b -q signal.C > test.log[/quote]
Another observation is that there is no such problem for svn trunk version on a ubuntu 9.10 machine. Maybe the gcc version is relevant?
Ubuntu:
[quote]$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 4.4.1-4ubuntu9’ --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) [/quote]
SLC4:
[quote]% gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)[/quote]
I suspect that something has been changed from ROOT 5.24 to 5.26. Could some ROOT developer have a look at this? You could also reproduce this problem on a lxplus (SLC4) machine either for tcsh shell or bash shell.
Axel
March 4, 2010, 11:16am
4
Hi,
I just fixed this in the trunk. Thanks for your report!
Cheers, Axel.