[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scripts stop running in bg in 4.0.35, and need to be toggled fg-bg to co

From: Miroslav Rovis
Subject: scripts stop running in bg in 4.0.35, and need to be toggled fg-bg to complete
Date: Sat, 6 Feb 2010 07:01:07 -0800 (PST)
User-agent: G2/1.0

(I wasn't able to send this with bashbug)
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: x86_64-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -
DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -
DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -
DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -
bin:/sbin:/bin' -DSTANDARD_UTILS_PATH='/bin:/usr/bin:/sbin:/usr/sbin' -
DSYS_BASHRC='/etc/bash/bashrc' -DSYS_BASH_LOGOUT='/etc/bash/
uname output: Linux at8-g250-c 2.6.31-gentoo-r6-100115_0100 #1 SMP Fri
Jan 15 02:05:25 CET 2010 x86_64 AMD Athlon(tm) 64 Processor 3000+
AuthenticAMD GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.0
Patch Level: 35
Release Status: release

The scripts that willingly and easily ran in background in bash 4.0.28
on my gentoo, stop running on first completed job or so in 4.0.35
(this bash here)... So I have to fg them, and then they do continue
running. But if there's input they need to be given, than they need to
be bg-ed again, and accept input only on the next fg.

Here is the script:
# The aim of the script is burning the DVD and checking that it's done
well through md5 fingerprint.
# It's run like this:
# dvd_W_md5_MA-SL_sch.sh 12 0 0 a ISO_FILE.iso descriptor_string
ISO_FILE.iso.md5 &
# "sch" is for Schily's cdrecord (but I don't believe that influences
this bug in any way)
# I wrote this script, because I could very easily burn on all 4 DVD
drives, at the same time,
# as they would all do the work without any further assistence  (old
PATA, so it's slow,
# but it's little work). Just check the md5
# in the file already containing the md5's from previous burns and
accept deleting the image
# of the new disk that was just burned if it was correct... Worked up
to bash 4.0.28 (included).
# But with bash 4.0.35 that is no longer the case. It stops and
doesn't do more than one job
# in the background...
cdrecord -v speed=$1 dev=100$2,$3,0 $5
play -q /usr/share/sounds/KDE-Sys-Log-In-Short.ogg
eject /dev/hd$4
eject /dev/hd$4 -t
readcd dev=100$2,$3,0 f=$iso_file
md5sum $iso_file >> $iso_md5_file
play -q /usr/share/sounds/KDE-Sys-Log-In-Short.ogg
cat $iso_md5_file
echo "Remove $iso_file?"
rm -i $iso_file
eject /dev/hd$4

reply via email to

[Prev in Thread] Current Thread [Next in Thread]