search for: getstatusoutput

Displaying 3 results from an estimated 3 matches for "getstatusoutput".

2007 Nov 08
3
Re: [Xen-staging] [xen-unstable] xend: Allow for non-existent xen-python-path binary.
...eletions(-) > > diff -r c0bdfda5183d -r 0ebac8576495 tools/misc/xend > --- a/tools/misc/xend Thu Nov 08 14:50:01 2007 +0000 > +++ b/tools/misc/xend Thu Nov 08 15:32:14 2007 +0000 > @@ -33,13 +33,14 @@ import time > import time > import commands > > -result = commands.getstatusoutput(os.path.join(os.path.dirname(sys.argv[0]), > - ''xen-python-path'')) > -if result[0] != 0: > - print >>sys.stderr, result[1] > - sys.exit(1) > +xpp = os.path.join(os.path.dirname(sys.argv[0], ''xen-pyth...
2010 Oct 22
15
Accessing Facter in other languages than Ruby?
Hi all, We''re writing a few scripts at the moment that could really make use of Facter, however the vast majority of them team (including my self!) are not proficient in Ruby, however they are highly proficient in other languages such as (dare I say it!) Python. Is there (or are there any plans to!) release bindings for other languages to enable facts to be used in scripts other
2007 Nov 17
0
generate_parm_table python script bug fix
...@ -89,7 +89,7 @@ ## First thing is to build the dictionary of parmeter names ## ## based on the output from testparm ## -cmd = "/usr/local/bin/testparm -s -v /dev/null" +cmd = "/usr/bin/testparm -s -v /dev/null" ( status, testparm_output ) = commands.getstatusoutput( cmd ) if status: sys.stderr.write( "Failed to execute testparm!\n%s\n" % testparm_output ) @@ -184,7 +184,7 @@ ## just make a copy parm_table[key] = parm_table[var_table[var_name]][:] - parm_table[key][0] = string.strip(parm[0])[1:-...