Displaying 20 results from an estimated 45 matches for "parse_arg".
Did you mean:
parse_args
2012 Feb 08
1
optparse::parse_args, using equals sign or not
Hi
We've found that when using parse_args(..., positional_arguments=FALSE),
it is permissible to invoke our script with either "--myfoo=bar" or
"--myfoo bar"; that is, whether or not the equals sign is present makes
no difference, and in fact both usage forms are demonstrated in the
optparse vignette.
However, we&...
2011 Dec 07
3
[Bug 1956] New: sftp segfaults in parse_args() when argv[0] is NULL
https://bugzilla.mindrot.org/show_bug.cgi?id=1956
Bug #: 1956
Summary: sftp segfaults in parse_args() when argv[0] is NULL
Classification: Unclassified
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sftp
AssignedTo: unassigne...
2004 Apr 21
1
iproute2 - Compile Error
...#39;
make[1]: Entering directory `/home/oluap/iproute2/ip''
gcc ip.o ipaddress.o iproute.o iprule.o rtm_map.o iptunnel.o ipneigh.o iplink.o ipmaddr.o ipmonitor.o ipmroute.o ../lib/libnetlink.a ../lib/libutil.a -lresolv -L../lib -lnetlink -lutil -o ip
iptunnel.o(.text+0x65a): In function `parse_args'':
: undefined reference to `__constant_htons''
iptunnel.o(.text+0x678): In function `parse_args'':
: undefined reference to `__constant_htons''
iptunnel.o(.text+0x75d): In function `parse_args'':
: undefined reference to `__constant_htons''
iptunnel...
2008 Jan 16
3
Application generation
Hi All,
Is anyone seeing this?
$ merb merb_paste
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:69:in
`parse_args'': uninitialized constant Merb::RELEASE (NameError)
from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize''
from /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:67:in
`new''
from /usr/local/lib/ruby/gems/1.8/gems/merb-0.5.2/lib/merb/config.rb:67:in...
2007 Dec 28
9
lost connection 2.0
I lost my "connection lost" error.. but now I''ve got a "Mysql::Error:
MySQL server has gone away" error..
It comes from:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in ''log''.
I''m not sure if Rails / BackgroundRb uses it .. but i''ve got the mysql
(2.7) gem
2013 Sep 09
4
[PATCH] Fix ocaml build in 4.1; problem with 4.1.6 release
...T perms.cmx
> MLOPT symbol.cmx
> MLOPT utils.cmx
> MLOPT store.cmx
> MLOPT disk.cmx
> MLOPT transaction.cmx
> MLOPT event.cmx
> MLOPT domain.cmx
> MLOPT domains.cmx
> MLOPT connection.cmx
> MLOPT connections.cmx
> MLOPT parse_arg.cmx
> MLOPT process.cmx
> File "process.ml", line 375, characters 3-8:
> Error: Unbound value error
commit 7e792ffe54adc2d9fcc210baa8140f210a841c31
Author: Ian Jackson <ian.jackson@eu.citrix.com>
Date: Mon Sep 9 15:30:42 2013 +0100
oxenstored: Fix process.ml bui...
2019 Aug 22
0
[PATCH disk-sync 4/5] Require libnbd >= 0.9.8 and fail hard if it's an earlier version.
...8 @@ import ssl
import sys
import json
+NBD_MIN_VERSION = version.parse("0.9.8")
+
LOG_FORMAT_TIME = '[%(asctime)s] '
LOG_FORMAT_MSG = ': %(message)s'
@@ -582,6 +586,13 @@ def main():
'''TODO: Add some description here '''
args = parse_args()
+
+ nbd_version = version.parse(nbd.NBD().get_version())
+ if nbd_version < NBD_MIN_VERSION:
+ logging.error("version on libnbd is too old. Version found = %s. Min version required = %s" %
+ (nbd_version, NBD_MIN_VERSION))
+ sys.exit(1)
+...
2013 May 07
0
Some potential bugs in Openssh-6.2p1
...t line 975: for (i = 0; env[i]; i++)
env is null.
3. Null Pointer
file: serverloop.c
function: server_loop2
At line 853: rekeying = (xxx_kex != NULL && !xxx_kex->done);
xxx_key may be null.
At line 871: xxx_kex->done = 0;
directly use xxx_key.
4. Null Pointer
file: sftp.c
function: parse_args
At line 1143: for (i = 0; cmds[i].c != NULL; i++) {
Could this loop breaks when cmds[i].c is null?
if so
At line 1148: cmd = cmds[i].c;
cmd is null, which is passed to strlen at line 1237.
5. Use after free
file: uidswap.c
function: temporarily_use_uid
At line 113: xfree(user_groups);
user_groups...
2019 Aug 22
7
[PATCH disk-sync 0/5] Misc cleanups and convert inner loop to asynch.
This is based on top of:
https://github.com/nertpinx/v2v-conversion-host/commit/0bb2efdcacd975a2cae7380080991ac7fc238d2b
The first 4 patches are fairly uncontroversial miscellaneous cleanups.
Patch 5 is the interesting one. (Note it doesn't quite work yet, so
it's for discussion only.)
Patch 5 converts the inner loop to use asynchronous libnbd calls.
performance improves quite a bit for
2012 Apr 04
1
npRmpi trouble - mpi.comm.spawn causes segfault
...ch2-1.4.1p1_gcc4.6.2/src/pm/hydra/utils/args/args.c:122):
unrecognized argument pmi_args
[mpiexec at manet.somewhere.group] HYDU_parse_array
(/home/userspace/plwm2/CPP/mpich2-1.4.1p1_gcc4.6.2/src/pm/hydra/utils/args/args.c:140):
argument matching returned error
[mpiexec at manet.somewhere.group] parse_args
(/home/userspace/plwm2/CPP/mpich2-1.4.1p1_gcc4.6.2/src/pm/hydra/ui/mpich/utils.c:1387):
error parsing input array
[mpiexec at manet.somewhere.group] HYD_uii_mpx_get_parameters
(/home/userspace/plwm2/CPP/mpich2-1.4.1p1_gcc4.6.2/src/pm/hydra/ui/mpich/utils.c:1438):
unable to parse user arguments...
2020 Jul 21
11
[RFC PATCH 0/4] PAM module for ssh-agent user authentication
Hi,
The main (and probably the only) use case of this PAM module is to let
sudo authenticate users via their ssh-agent, therefore without having
to type any password and without being tempted to use the NOPASSWD sudo
option for such convenience.
The principle is originally implemented by an existing module [0][1]
and many pages that explain how to use it for such purpose can be
found online.
2015 Nov 11
2
[PATCH 1/2] dib: Make the interface between cmdline.ml and dib.ml explicit.
...= *~ *.annot *.cmi *.cmo *.cmx *.cmxa *.o virt-dib
+SOURCES_MLI = \
+ cmdline.mli
+
SOURCES_ML = \
utils.ml \
cmdline.ml \
diff --git a/dib/cmdline.ml b/dib/cmdline.ml
index 4aa6a53..3a97366 100644
--- a/dib/cmdline.ml
+++ b/dib/cmdline.ml
@@ -25,7 +25,37 @@ open Utils
open Printf
-let parse_args () =
+type cmdline = {
+ debug : int;
+ basepath : string;
+ elements : string list;
+ excluded_elements : string list;
+ element_paths : string list;
+ excluded_scripts : string list;
+ use_base : bool;
+ drive : string option;
+ image_name : string;
+ fs_type : string;
+ size : int64;...
2018 Jul 09
1
slow mailbox refreshes
Hello,
I am using dovecot 2.3.2 on my private email server in conjunction with:
centos 7.5
apache 2.4.6
mariadb 10.2.16
roundcube mail 1.3.6
php 5.6.36
postfix 2.10.1
I have one mailbox with nearly 30k messages in it dispersed across
several folders. it's often very slow in refreshing the message list,
especially in the one largest 25k+ message folder. is this simply to be
expected
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
...word(optional)")
+parser.add_option("--disk", dest="disk", help="iSCSI disk device name")
+parser.add_option("--disk-label", dest="disk_label", default="ovirt-node-root", help="file system label")
+
+(options, args) = parser.parse_args()
+
+def fail(msg):
+ print(msg)
+ sys.exit(1)
+
+if os.geteuid () != 0:
+ fail("You must run as root")
+
+if options.iso is None:
+ fail("ERROR: iso file must be defined")
+else:
+ options.iso = os.path.abspath(options.iso)
+
+if options.target is None:
+ fai...
2009 Feb 12
2
[patch] hard link protocol extension for sftp
...eate hard link to remote file\n"
"lls [ls-options [path]] Display local directory listing\n"
"lmkdir path Create local directory\n"
"ln oldpath newpath Symlink remote file\n"
@@ -1111,6 +1114,7 @@ parse_args(const char **cpp, int *pflag,
}
break;
case I_RENAME:
+ case I_LINK:
case I_SYMLINK:
if (argc - optidx < 2) {
error("You must specify two paths after a %s "
@@ -1250,6 +1254,11 @@ parse_dispatch_command(struct sftp_conn
path2 = make_absolute(path2, *pwd);
err =...
2012 Mar 28
2
getopt does not work as expected!
I have the following script (also attached):
#!/usr/bin/Rscript
spec=matrix(c(
'verbose', 'v', 1, "integer",
'help' , 'h', 0, "logical"
),ncol=4, byrow=TRUE)
spec.dim=dim(spec)
spec.opt.long=spec[,1]
spec.opt.short=spec[,2]
spec.opt.l <- spec.dim[1]
infile <- "test.dat"
args=commandArgs(TRUE); l=length(args)
self =
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
...)
+options.add_option('-f', '--fields',
+ action = 'store',
+ default = None,
+ dest = 'fields',
+ help = 'fields to display (regex)',
+ )
+(options, args) = options.parse_args(sys.argv)
+
+try:
+ provider = [TracepointProvider('vhost'), TracepointProvider('vhost_net')]
+except:
+ print "Could not initialize tracepoint"
+ sys.exit(1)
+
+stats = Stats(provider, fields = options.fields)
+
+if options.log:
+ log(stats)
+elif not options...
2015 Oct 09
3
Python version for scripts in LLVM?
...really behaving linearly.
"""
+from __future__ import print_function
import argparse
def main():
parser = argparse.ArgumentParser(description=__doc__)
@@ -17,27 +18,27 @@
help="Number of ladder rungs. Must be a multiple of 2")
args = parser.parse_args()
if (args.rungs % 2) != 0:
- print "Rungs must be a multiple of 2"
+ print("Rungs must be a multiple of 2")
return
- print "int ladder(int *foo, int *bar, int x) {"
+ print("int ladder(int *foo, int *bar, int x) {")
rung1 = xrange(0, args...
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
This patch introduces extra functionality to chain.c, mainly with reference to
BPB adjustments, but not only that. It expects 3 small patches I sent earlier
(they are included for easy reference, patches 1-3/4).
The changes introduced are:
1) file and boot sector use separate options to control load address and jump
address (if applicable). Options are as described below:
*
2016 Aug 19
1
[PATCH] virt-rescue rewrite in OCaml
Hi, I tried to rewrite virt-rescue from C to OCaml.
Goals were feature parity with C implementation, smaller codebase and
hopefully better maintainability. I still don't know if I've covered
everything right. So, please check it out.
PS: my git send-email seems to be broken, so I'm sending it from thunderbird
Thanks!
maros