search for: shopt

Displaying 20 results from an estimated 45 matches for "shopt".

Did you mean: shop
2016 Mar 22
0
[PATCH v3 02/11] appliance: Move /proc/cmdline checks earlier.
...iance/init +++ b/appliance/init @@ -75,21 +75,6 @@ $UDEVD --daemon #--debug udevadm trigger udevadm settle --timeout=600 -if grep -sq selinux=1 /proc/cmdline; then - mount -t selinuxfs none /sys/fs/selinux -fi - -# Disk optimizations. -# Increase the SCSI timeout so we can read remote images. -shopt -s nullglob -for f in /sys/block/sd*/device/timeout; do echo 300 > $f; done -# https://access.redhat.com/site/solutions/5427 -for f in /sys/block/{h,s,ub,v}d*/queue/scheduler; do echo noop > $f; done -shopt -u nullglob - -# Update the system clock. -hwclock -u -s - # Parse the kernel command...
2016 Mar 23
1
Re: [PATCH v3 02/11] appliance: Move /proc/cmdline checks earlier.
...$UDEVD --daemon #--debug > udevadm trigger > udevadm settle --timeout=600 > > -if grep -sq selinux=1 /proc/cmdline; then > - mount -t selinuxfs none /sys/fs/selinux > -fi > - > -# Disk optimizations. > -# Increase the SCSI timeout so we can read remote images. > -shopt -s nullglob > -for f in /sys/block/sd*/device/timeout; do echo 300 > $f; done > -# https://access.redhat.com/site/solutions/5427 > -for f in /sys/block/{h,s,ub,v}d*/queue/scheduler; do echo noop > $f; done > -shopt -u nullglob > - > -# Update the system clock. > -hwclock...
2001 Feb 21
4
OpenSSH-2.5.1p1 scp hangs when scping into an RH (6.0|7.0) bo x
I think that you're supposed to run the shopt on crate in your .profile... --Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010221/dc1af634/attachment.html
2012 Mar 15
3
Problem with stored configs / Invalid unicode escaping
...39;'t overwrite GNU Midnight Commander''''s setting of `ignorespace''''. HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups # ... or force ignoredups and ignorespace HISTCONTROL=ignoreboth # append to the history file, don''''t overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 HISTTIMEFORMAT="%F %T " # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # make le...
2011 Aug 11
1
[PATCH] hivex: A few tweaks to enable building in a separate directory
...r FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -set -e -shopt -s nullglob - -for f in t/*.py; do - basename "$f" - python "$f" -done diff --git a/python/run-python-tests.in b/python/run-python-tests.in new file mode 100755 index 0000000..af51080 --- /dev/null +++ b/python/run-python-tests.in @@ -0,0 +1,25 @@ +#!/bin/bash - +# hivex Pytho...
2002 Nov 15
1
workaround for 'hang on exit' bug does not seem to work
Hi, I am using Redhat 7.3 which comes with openssh 3.1p1. I am running an antivirus software called vexira on this server. It starts of 2 daemon processes in the background. Whenever I stop/start these daemons in an ssh session, it hangs. I added "shopt -s huponexit" (without the quotes) in /etc/bashrc, but the hangs still occur. Any advice on this would be appreciated Regards, Yusuf -- Yusuf Goolamabbas yusufg at outblaze.com
2016 Mar 22
1
[PATCH] appliance: use bash features for string matching in files
...it +++ b/appliance/init @@ -75,7 +75,9 @@ $UDEVD --daemon #--debug udevadm trigger udevadm settle --timeout=600 -if grep -sq selinux=1 /proc/cmdline; then +cmdline=$(</proc/cmdline) + +if [[ $cmdline == *selinux=1* ]]; then mount -t selinuxfs none /sys/fs/selinux fi @@ -91,16 +93,16 @@ shopt -u nullglob hwclock -u -s # Parse the kernel command line. -if grep -sq guestfs_verbose=1 /proc/cmdline; then +if [[ $cmdline == *guestfs_verbose=1* ]]; then guestfs_verbose=1 fi -if grep -sq guestfs_network=1 /proc/cmdline; then +if [[ $cmdline == *guestfs_network=1* ]]; then guestf...
2013 Jan 24
2
rsync parameters errors
...ly different error messages. /home/bigbird/pgm/backup_periodic/ is where the script is stored and is the current directory when it runs. This script is nested within a couple of others, the first of which calls the the second using sudo, so everything runs as root. I'm running my script with shopt -s -o xtrace # debug shopt -s -o verbose # debug That's what makes this output a little dense, but complete. What the heck am I doing to get rsync so confused? (The destination was built using my previous notebook (RIP). That's why there's so much more in it. I'll move things...
2016 Mar 17
5
[PATCH 0/3] appliance: Pass "quiet" option to kernel when !verbose.
Using the quiet option (when not in verbose mode) improves boot speeds by rather a lot, by avoiding sending messages over the slow emulated UART. Rich.
2001 Apr 24
1
HELP! sftp hangs on exit / Bug?
...penSSH may hang when exiting. This can > > occur when there is an active background process. This is known to > > occur on Linux and HP-UX. The problem can be verified by doing > > the following: sleep 20&exit. > > > > A work around for bash users is to place "shopt -s huponexit" in > > either /etc/bashrc or ~/.bashrc. Otherwise, consult your shell's man > > page for an option to enable it to send a HUP signal to active > > jobs when exiting. > > I added 'shopt -s huponexit' to /etc/profile (since this > is the file...
2004 Jan 19
3
OpenSSH - forced command - no-pty issue
Hello Darren, The major problem we are running into is that the shell (both sh and ksh) does not kill its child processes when there is no pty. The SSH patch mentioned previously at http://bugzilla.mindrot.org/show_bug.cgi?id=396 is not sufficient to kill the forced command completely.It will only kill the shell script, but not any child processes the shell script runs. The shell assumes the
2001 Jan 23
1
Workaround for hanging shells on exit
While browsing through bash's hugh manpage, I noticed that it has a 'huponexit' option which will send SIGHUP to all interactive processes when the shell exits. I have tested this and it does resolve the hanging at logout without causing race conditions. I now have a "shopt -s huponexit" in my /etc/bashrc and it works beautifully. -d -- | ``We've all heard that a million monkeys banging on | Damien Miller - | a million typewriters will eventually reproduce the | <djm at mindrot.org> | works of Shakespeare. Now, thanks to the Internet, / | we know t...
2001 Feb 22
1
2.5.1p1 logout hangs after RHL crond start
The RHL 6.2 command "/etc/rc.d/init.d/crond start" prevents clean logout from compiled version of OpenSSH-2.5.1p1 on all hosts. The command "/etc/rc.d/init.d/crond stop" is OK. This occurs for interactive or command line requests. ssh remotehost /etc/rc.d/init.d/crond stop --- works every time ssh remotehost /etc/rc.d/init.d/crond start --- hangs every time Control-C will
2011 Jan 13
3
/etc/bashrc causing probs..
Hello,i've appended the below to /etc/bashrc, which is causing an error once i try to rsync using ssh to this specific box.any idea how to prevent bashrc to execute the below to a no login shell ? or any other advice for that matter. if [ $(id -u) -eq 0 ];then # you are rootecho "###############################################"echo "### You are now working as ROOT.
2005 Jan 21
0
Case Sensitive Problem in SMBFS mount
In Reply To: It might not be Samba at all. Look in your ~/.bash_profile, ~/.bashrc, and /etc/bashrc files for this line: shopt -s cdspell It causes the bash shell to "correct" minor misspellings, like a lower case 't'. -Ken Jackson > I am using Redhat Linux 9.0 on one machine and Windows XP on > another machine. There is a folder named "Test" on WinXP which is > mounted on my linu...
2014 Jan 10
0
[PATCH 7/7] python: fix test runner so scripts are found when building out-of-tree
--- python/run-python-tests.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/run-python-tests.in b/python/run-python-tests.in index 90aee03..0df646b 100755 --- a/python/run-python-tests.in +++ b/python/run-python-tests.in @@ -19,7 +19,7 @@ set -e shopt -s nullglob -for f in @srcdir@t/*.py; do +for f in @srcdir@/t/*.py; do basename "$f" $PYTHON "$f" done -- 1.8.5.2
2002 Jan 23
1
[Bug 52] ssh hangs on exit
...ess group. * Close the connection when the child dies. - Background commands may need to write data to the connection. Also prematurely truncates output from some commands (scp server, the famous "dd if=/dev/zero bs=1000 count=100" case). Known-good workarounds: * bash: shopt huponexit on * tcsh: none * zsh: setopt HUP (usually the default setting) (taken from email from Jason Stone to openssh-unix-dev, 5 May 2001) * pdksh: ? This appears to affect rsh as well: it behaves the same with 'sleep 20 & exit'. ------- You are receiving this mail because:...
2013 Jan 21
0
Custom locale, LC_TYPE and urxvt
...if [ "$PS1" ]; then . "$i" else . "$i" >/dev/null 2>&1 fi fi done unset i unset pathmunge fi However, when I look for the mate to that final 'fi' I find this: . . . if ! shopt -q login_shell ; then # We're not a login shell # Need to redefine pathmunge, it get's undefined at the end of /etc/profile pathmunge () . . . Evidently /etc/profile.d/lang.sh only gets processed by /etc/bashrc if I am NOT in a login shell. The question then is: when does /etc/p...
2010 May 25
3
purge maildir folder after sa-learn
Hello, I am looking for a command-line utility to automatically purge one Maildir folder. I want to periodically run sa-learn from cron, and after the spam learning folder has been added to the Bayes database, its contents should be deleted. I've searched a bit, but only found a few old utilities or some telnet+expect scripts, which both didn't look too reliable. Is there any
2011 Aug 20
4
[PATCH 1/2] Make xencommons a bit more idiomatic
...om> diff -r 8d6edc3d26d2 -r cfb49fe940fd tools/hotplug/Linux/init.d/xencommons --- a/tools/hotplug/Linux/init.d/xencommons Sat Aug 13 10:14:58 2011 +0100 +++ b/tools/hotplug/Linux/init.d/xencommons Tue Aug 16 16:56:16 2011 -0700 @@ -29,11 +29,9 @@ XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid shopt -s extglob -if test "x$1" = xstart && \ - test -d /proc/xen && \ - ! test -f /proc/xen/capabilities && \ - ! grep ''^xenfs '' /proc/mounts >/dev/null; -then +if [ "x$1" = xstart -a -d /proc/xen -a \ + ! -f /proc/xen/capabil...