Displaying 20 results from an estimated 94 matches for "subshell".
2020 Mar 28
0
[klibc:update-dash] dash: eval: Reset handler when entering a subshell
...h=3f314ab5fe4a08b6e8d0ce34465298ba20f90def
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sun, 3 Mar 2019 21:57:50 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: eval: Reset handler when entering a subshell
[ dash commit 02a00569ba60e502f876c36d894ba0cc2d0682b3 ]
As it is a subshell can execute code that is only meant for the
parent shell when it executes a longjmp that is caught by something
like evalcommand. This patch fixes it by resetting the handler
when entering a subshell.
Reported-by: Mart...
2006 Dec 12
3
bring back sub shells
...shell - meaning something like the
mysql command line, where once started it takes it's own commands, etc
and keeps running until a "quit" command is issued. Now what I was
wondering - is there a way to fork it to the background (something
like # command & or ctrl -z) and have the subshell keep running? And
also to be able to get back to the sub shell?
For example, if i do run it with the & at the end it does what I want,
yet obviously (to my knowledge) you can't get back to the subshell
without killing it and restarting it. I have looked into the "screen"
shell ut...
2007 Aug 14
8
sh DTrace provider available
As noted on my blog and at
http://www.opensolaris.org/os/community/dtrace/shells/ I''ve made
available a DTrace provider for the Bourne shell. Before anyone starts
yelling at me for not starting with another shell, read the blog I made
explaining why we started with shell (link on the community page
referenced above).
For /bin/sh, I''ve put up something akin to a chapter in
2007 Oct 24
1
Stubbing Kernel.` (backquote)
...nd: OcrBarcode
/Users/george/work/simplify_md/tmp/valid_2007_10_24_111354_EDT.pdf
(all one line)
Significantly, if I remove the stub (Kernel.stub!(''`''.to_sym)), I get
the same result: passing with the same "command not found" message.
Is there an accepted way to stub subshell calls?
Thanks,
/g
--
George Anderson
BenevolentCode LLC
O: (410) 461-7553
C: (410) 218-5185
george at benevolentcode.com
2019 Aug 02
0
[nbdkit PATCH v2 16/17] sh: Test for fd leaks
...ited fd
in the environment of both nbdkit and the shell script, but this is
not an nbdkit leak. Furthermore, checking how many fds are open in a
shell is tricky: many actions in the shell (such as a glob or
pipeline) increase the number of temporarily-open file descriptors; I
settled on creating a subshell, then using ls to check the files still
open in $$ (the subshell prevents the parent from using any more fds,
all without changing $$).
This addition is rather fragile - if it causes testsuite failures in
some environments, we may end up reverting it.
Signed-off-by: Eric Blake <eblake@redhat.c...
2015 Mar 26
2
Icecast won't start on system boot
...system configuration there might be at least some
>vague note in the journal about a process segfaulting or such. I know at
>least Ubuntu logs segfaults, not sure about Fedora.
Well, here's something that's telling--the output from running the
startup script /etc/init.d/icecast2 in a subshell:
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/bin/icecast2
+ NAME=icecast2
+ DESC=icecast2
+ test -x /usr/bin/icecast2
+ exit 0
Failed the test for existence? How's that?
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/bi...
2017 Feb 06
1
GCC 4.9 in CentOS 7 ??
On Sun, 5 Feb 2017, Gordon Messmer wrote:
> Yes. Use the software collections.
>
> https://www.softwarecollections.org/en/
>
> https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/
There are three ways to utilize SCLs: a temporary subshell invoked
with the scl utility, a session-long environment shift by sourcing the
package's 'enable' script, or a permanent alteration of your shell
profile to include the package's bin/ and lib/ directories.
I outline the first two methods in a blog post you may find helpful:...
2020 Jul 13
1
hex editor for huge files
...t; Makefiles.
>> ...
>>
>> Regards,
>> Simon
>
> Thank you for bringing this to my attention. I apologize for any
> inconvenience. I was under the impression make would terminate if a
> command
> failed, but it seems that is not true for variables set via a subshell.
>
> I will remove the dependency on realpath in the Makefiles and scripts,
> and
> implement a more robust cross-platform build solution when I get a
> chance.
> Again, thank you for testing this within the RPM framework.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Simon...
2007 Aug 05
2
! Command from -rx?
This may sound stupid.. so bear with me for a moment.
Assuming the only access I have to a machine is through asterisk -rx
can I use the ! command?
asterisk -rx help
includes the ! command, but I can't seem to get it to work ie:
asterisk -rx "! ls"
Any help?
2015 Feb 14
3
C5 BASH IF
On 02/14/2015 12:03 PM, Les Mikesell wrote:
> On Sat, Feb 14, 2015 at 11:36 AM, J Martin Rushton
> <martinrushton56 at btinternet.com> wrote:
>> <snip>
>>> To understand it completely you need to know the order of
>>> operations as the shell makes multiple passes over the line,
>>> parsing, processing metacharacters, and expanding variables. And
2002 Feb 03
2
WinVC - Multiple file tag editor!
> Source? :)
It's in Delphi 5. I will make the source code available when I'm happy with
it, if anyone wants it.
> I havn't used it yet, but you might find these screenshots helpful for
> an interface:
Initially I've designed the interface for the 95% of users who just want
something very simple and can see the tags they are interested in on one
form. I may add an
2015 Mar 26
2
Icecast won't start on system boot
...at least some
>>> vague note in the journal about a process segfaulting or such. I know at
>>> least Ubuntu logs segfaults, not sure about Fedora.
>> Well, here's something that's telling--the output from running the
>> startup script /etc/init.d/icecast2 in a subshell:
>>
>> + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>> + DAEMON=/usr/bin/icecast2
>> + NAME=icecast2
>> + DESC=icecast2
>> + test -x /usr/bin/icecast2
>> + exit 0
>>
>> Failed the test for existence? How's that?
>&g...
2011 Feb 08
6
Unrecognised escape sequences
unfortunately, we keep getting this warns into the system log by
puppet masters:
" [...] Unrecognised escape sequence ''\<CHAR>'' in file <PATH> [...] "
but then everything works fine; also, without using escapes, catalogs
dont work on agents.
What can we do to avoid these kind of errors in master syslogs?
Please ,let us know ASAP and tell us if this
2020 Jul 13
2
hex editor for huge files
> On 2020-07-12 05:57, Mogens Kjaer wrote:
>> On 7/10/20 4:10 PM, Simon Matter via CentOS wrote:
>>> Thanks for the tool, I've created RPMs of it:
>>>
>>> http://www.invoca.ch/pub/packages/hexpeek/
>>
>> The package generates a symlink /usr/bin/hexedit to /usr/bin/hexpeek,
>> but this is in conflict with the package hexedit which is in base
2016 Oct 06
2
NOTIFYCMD doesn't work at all... not fully
Hi there,
i have a problem with the NOTIFYCMD in the upsmon.conf file.
My line in the config looks like this:
NOTIFYCMD "/etc/nut/upsnotify.sh"
Now this ist my "/etc/nut/upsnotify.sh":
#!/bin/bash
EMAIL='mail at domain.de'
SMS1='+49123456789'
SMS2='+491987654231'
#eMail versenden
echo -e "Die USV mit dem Namen '$UPSNAME' hat seinen
2008 Mar 05
1
Asterisk 1.6.0-beta5 Now Available
...te of a Custom device. Custom device states were
previously only settable by using the DEVICE_STATE() dialplan function.
* The Originate manager action now has its own permission level called
originate. Also, if you want this action to be able to execute applications
that call out to a subshell, it requires the system privilege, as well.
These changes were made to enhance the security of the manager interface.
For a full list of features that have been introduced from Asterisk 1.4 to
Asterisk 1.6.0, see the following file:
* http://svn.digium.com/view/asterisk/branches/1.6.0/CHANGES...
2008 Mar 05
1
Asterisk 1.6.0-beta5 Now Available
...te of a Custom device. Custom device states were
previously only settable by using the DEVICE_STATE() dialplan function.
* The Originate manager action now has its own permission level called
originate. Also, if you want this action to be able to execute applications
that call out to a subshell, it requires the system privilege, as well.
These changes were made to enhance the security of the manager interface.
For a full list of features that have been introduced from Asterisk 1.4 to
Asterisk 1.6.0, see the following file:
* http://svn.digium.com/view/asterisk/branches/1.6.0/CHANGES...
2007 Jul 09
8
Capistrano mongrel recipes and /usr/local/bin
Hello,
I''m trying to deploy my application with Capistrano using Mongrel
recipes. Since I''ve installed Ruby from source code, mongrel scripts
are found in /usr/local/bin. But the recipes can''t find
mongrel_rails : "bash: mongrel_rails: command not found". The path of
the user account used to deploy is OK. For sure, I can redefine
2006 Feb 01
0
Announce: OpenSSH 4.3 released
...ational orders use http://https.openbsd.org/cgi-bin/order
and for European orders, use http://https.openbsd.org/cgi-bin/order.eu
Changes since OpenSSH 4.2:
============================
Security bugs resolved in this release:
* CVE-2006-0225: scp (as does rcp, on which it is based) invoked a
subshell to perform local to local, and remote to remote copy
operations. This subshell exposed filenames to shell expansion
twice; allowing a local attacker to create filenames containing
shell metacharacters that, if matched by a wildcard, could lead
to execution of attacker-specified commands...
2006 Feb 01
0
Announce: OpenSSH 4.3 released
...ational orders use http://https.openbsd.org/cgi-bin/order
and for European orders, use http://https.openbsd.org/cgi-bin/order.eu
Changes since OpenSSH 4.2:
============================
Security bugs resolved in this release:
* CVE-2006-0225: scp (as does rcp, on which it is based) invoked a
subshell to perform local to local, and remote to remote copy
operations. This subshell exposed filenames to shell expansion
twice; allowing a local attacker to create filenames containing
shell metacharacters that, if matched by a wildcard, could lead
to execution of attacker-specified commands...