Displaying 20 results from an estimated 60000 matches similar to: "scripts with the dialog command"
2018 Dec 14
0
[PATCH nbdkit 1/3] sh: Implement inline scripts.
This implements something like a readonly 1MB disk reading as zeroes:
nbdkit sh script=- <<'EOF'
case "$1" in
get_size) echo 1M ;;
pread) dd if=/dev/zero count=$3 iflag=count_bytes ;;
*) exit 2 ;;
esac
EOF
Use of "-" is analogous to reading passwords from stdin.
---
plugins/sh/nbdkit-sh-plugin.pod | 17 ++++++++++
plugins/sh/sh.c
2018 Dec 15
0
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
On Fri, Dec 14, 2018 at 04:31:32PM -0600, Eric Blake wrote:
> On 12/14/18 4:16 PM, Richard W.M. Jones wrote:
> >This implements something like a readonly 1MB disk reading as zeroes:
> >
> >nbdkit sh script=- <<'EOF'
> > case "$1" in
> > get_size) echo 1M ;;
> > pread) dd if=/dev/zero count=$3 iflag=count_bytes ;;
> >
2018 Dec 14
2
Re: [PATCH nbdkit 1/3] sh: Implement inline scripts.
On 12/14/18 4:16 PM, Richard W.M. Jones wrote:
> This implements something like a readonly 1MB disk reading as zeroes:
>
> nbdkit sh script=- <<'EOF'
> case "$1" in
> get_size) echo 1M ;;
> pread) dd if=/dev/zero count=$3 iflag=count_bytes ;;
> *) exit 2 ;;
> esac
> EOF
>
> Use of "-" is analogous to reading
2020 Apr 14
0
[nbdkit PATCH v2 1/3] server: Add nbdkit_stdio_safe
Trying to read a password or inline script from stdin when the -s
option was used to connect to our client over stdin is not going to
work. It would be nice to fail such usage as soon as possible, by
giving plugins a means to decide if it is safe to use stdio during
.config. Update nbdkit_read_password and the sh plugin to take
advantage of the new entry point.
Signed-off-by: Eric Blake
2020 Apr 04
0
[nbdkit PATCH 1/2] server: Add nbdkit_stdio_safe
Trying to read a password or inline script from stdin when the -s
option was used to connect to our client over stdin is not going to
work. It would be nice to fail such usage as soon as possible, by
giving plugins a means to decide if it is safe to use stdio during
.config. Update nbdkit_read_password and the sh plugin to take
advantage of the new entry point.
Also, treat 'nbdkit -s
2007 Aug 21
2
dialog boxes on X
All,
I have been looking at zenity to pop up messages on the X screen.
Is there another alternative to zenity that I have not found?
I need to be able to completely remove the OK button, I cannot find a
way in zenity to do this.
also It would be nice to have a --timeout 5 option on the command line also.
Any suggestions?
Jerry
2023 Aug 31
2
[PATCH nbdkit] sh: In pwrite, allow scripts to ignore stdin
See comment for explanation and
https://listman.redhat.com/archives/libguestfs/2023-August/032468.html
---
tests/Makefile.am | 2 +
plugins/sh/call.c | 33 +++++++-----
tests/test-sh-pwrite-ignore-stdin.sh | 77 ++++++++++++++++++++++++++++
3 files changed, 100 insertions(+), 12 deletions(-)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index
2020 Apr 15
0
Re: [PATCH nbdkit 9/9] eval, sh: Define $nbdkit_safe_stdio = 0|1 in scripts.
On Wed, Apr 15, 2020 at 01:09:21PM -0500, Eric Blake wrote:
> On 4/15/20 11:16 AM, Richard W.M. Jones wrote:
>
> In the subject, you describe $nbdkit_safe_stdio, but in the patch body...
>
> >---
> > plugins/eval/nbdkit-eval-plugin.pod | 11 +++--------
> > plugins/sh/nbdkit-sh-plugin.pod | 18 +++++++++++++++++-
> > plugins/sh/call.c |
2004 Apr 01
3
[Bug 830] Check immediate EOF coming on stdin
http://bugzilla.mindrot.org/show_bug.cgi?id=830
Summary: Check immediate EOF coming on stdin
Product: Portable OpenSSH
Version: 3.8p1
Platform: Other
OS/Version: other
Status: NEW
Severity: minor
Priority: P2
Component: ssh
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: ignasi.roca at
2020 Apr 15
0
[PATCH nbdkit 9/9] eval, sh: Define $nbdkit_safe_stdio = 0|1 in scripts.
---
plugins/eval/nbdkit-eval-plugin.pod | 11 +++--------
plugins/sh/nbdkit-sh-plugin.pod | 18 +++++++++++++++++-
plugins/sh/call.c | 8 ++++++--
tests/test-single-sh.sh | 4 ++++
4 files changed, 30 insertions(+), 11 deletions(-)
diff --git a/plugins/eval/nbdkit-eval-plugin.pod b/plugins/eval/nbdkit-eval-plugin.pod
index 602fd3aa..a016aa78 100644
---
2020 Apr 15
1
Re: [PATCH nbdkit 9/9] eval, sh: Define $nbdkit_safe_stdio = 0|1 in scripts.
On 4/15/20 1:18 PM, Richard W.M. Jones wrote:
> On Wed, Apr 15, 2020 at 01:09:21PM -0500, Eric Blake wrote:
>> On 4/15/20 11:16 AM, Richard W.M. Jones wrote:
>>
>> In the subject, you describe $nbdkit_safe_stdio, but in the patch body...
>>
>>> ---
>>> plugins/eval/nbdkit-eval-plugin.pod | 11 +++--------
>>> plugins/sh/nbdkit-sh-plugin.pod
2011 Jul 10
1
Samba4 - Cannot get quick test to succeed
Hi All,
I'm currently using/testing samba-4.0.0alpha15. I downloaded the tar
ball, followed the Samba4 HOWTO wiki at
http://wiki.samba.org/index.php/Samba4/HOWTO and got stuff working
pretty well. I have experienced issues with GPOs and such and dynamic
dns and so thought I'd try the current version but I cannot now get
samba4 to pass quicktest (or any other test).
I've tried
2020 Apr 15
2
Re: [PATCH nbdkit 9/9] eval, sh: Define $nbdkit_safe_stdio = 0|1 in scripts.
On 4/15/20 11:16 AM, Richard W.M. Jones wrote:
In the subject, you describe $nbdkit_safe_stdio, but in the patch body...
> ---
> plugins/eval/nbdkit-eval-plugin.pod | 11 +++--------
> plugins/sh/nbdkit-sh-plugin.pod | 18 +++++++++++++++++-
> plugins/sh/call.c | 8 ++++++--
> tests/test-single-sh.sh | 4 ++++
> 4 files changed, 30
2020 Jun 01
0
[PATCH nbdkit 1/3] server: Disallow password=- from non-tty and fix error message (RHBZ#1842440).
This command fails with an incorrect error message:
$ nbdkit ssh host=localhost /nosuchfile password=- --run 'qemu-img info $nbd' </dev/null
password:
nbdkit: error: could not read password from stdin: Inappropriate ioctl for device
The error (ENOTTY Inappropriate ioctl for device) is actually a
leftover errno from the previous isatty call. This happens because
getline(3) can
2003 Apr 09
2
[Bug 542] OpenSSH 3.6.1p1 - sftp exit codes and improved logging for scripting
http://bugzilla.mindrot.org/show_bug.cgi?id=542
Summary: OpenSSH 3.6.1p1 - sftp exit codes and improved logging
for scripting
Product: Portable OpenSSH
Version: -current
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: sftp
AssignedTo:
2020 Jun 01
1
Re: [PATCH nbdkit 1/3] server: Disallow password=- from non-tty and fix error message (RHBZ#1842440).
On 6/1/20 5:31 AM, Richard W.M. Jones wrote:
> This command fails with an incorrect error message:
>
> $ nbdkit ssh host=localhost /nosuchfile password=- --run 'qemu-img info $nbd' </dev/null
> password:
> nbdkit: error: could not read password from stdin: Inappropriate ioctl for device
>
> The error (ENOTTY Inappropriate ioctl for device) is actually a
2001 Oct 10
7
OpenSSH solaris: bad return code after exec of remote command
Hi OpenSSH developers,
I am using openSSH (now 2.9.9p2, but prob occurs in 2.9p2 also) to execute
commands on a remote machine which outputs data to stdout then pipes it to
another invocation of ssh which connects back to the first machine in the same
way, where it starts a program to read and store the output from the command on
the second machine. I am using the "command" option in
2001 Dec 17
0
SSH hanging
Hi,
We installed OBSD's ssh package on production and find our batch jobs
are hanging on the "ssh"
command. The details are included below, for both normal and "hanging"
executions. Please let
me know if this is a new or existing bug or if you require further info
to debug this. The command
was executed with the highest debug level (-v -v -v for level 3). This
script
2018 May 28
2
readLines function with R >= 3.5.0
>>>>> Martin Maechler
>>>>> on Mon, 28 May 2018 10:28:01 +0200 writes:
>>>>> Ralf Stubner
>>>>> on Fri, 25 May 2018 19:18:58 +0200 writes:
>> Dear all, I would like to draw you attention to this
>> question on SO:
>>
2001 Aug 02
0
Bugs: SSH sometimes failing to report exit-status and more
I have a few bug reports and some comments after upgrading from SSH
1.2.27 to OpenSSH 2.9p2 at a large university.
OpenSSH often fail to return the correct exit status from the remote
command if small amounts of data are transfered, SSH version is 2 and
ssh is run with no STDIN or with the -n option. Below is an example.
Authentication method is hostbased and the file sizes are 1KB, 4KB and
8KB: