search for: env_var

Displaying 20 results from an estimated 20 matches for "env_var".

Did you mean: env_vars
2015 Aug 27
1
[PATCH] customize: Use setarch when running commands on i686 guest (RHBZ#1256405).
...Pass environment variables through from the host. * - Send stdout and stderr to a log file so we capture all output * in error messages. + * - Use setarch when running x86_64 host + i686 guest. * Also catch errors and dump the log file completely on error. *) let env_vars = @@ -69,11 +70,16 @@ let run (g : Guestfs.guestfs) root (ops : ops) = ) [ "http_proxy"; "https_proxy"; "ftp_proxy"; "no_proxy" ] in let env_vars = String.concat "\n" env_vars ^ "\n" in + let setarch = + match Config...
2015 Aug 31
1
[PATCH] customize: fix running commands on the same architecture
...customize_run.ml index 2283272..9d97522 100644 --- a/customize/customize_run.ml +++ b/customize/customize_run.ml @@ -70,18 +70,20 @@ let run (g : Guestfs.guestfs) root (ops : ops) = ) [ "http_proxy"; "https_proxy"; "ftp_proxy"; "no_proxy" ] in let env_vars = String.concat "\n" env_vars ^ "\n" in - let setarch = + let cmd = match Config.host_cpu, guest_arch with - | "x86_64", ("i386"|"i486"|"i586"|"i686") -> "setarch i686" - | _ -> "&qu...
2020 May 04
1
[common PATCH] mltools: add run_in_guest_command helper
...+ else ( + (* Add a prologue to the scripts: + * - Pass environment variables through from the host. + * - Optionally send stdout and stderr to a log file so we capture + * all output in error messages. + * - Use setarch when running x86_64 host + i686 guest. + *) + let env_vars = + List.filter_map ( + fun name -> + try Some (sprintf "export %s=%s" name (quote (Sys.getenv name))) + with Not_found -> None + ) [ "http_proxy"; "https_proxy"; "ftp_proxy"; "no_proxy" ] in + let env_va...
2012 Dec 07
1
points3d and ordirgl
Hello all, I have been using the function ordirgl to plot 3D dynamic ordinations. The ordirgl function works just fine. IN fact, I was even able to write a function that allows me to identify points in the 3D plot: identify.rgl<-function(env_var,ord,dim1,dim2,dim3) { tmp<-select3d(button="left") tmp.keep<-tmp(ord[,dim1],ord[,dim2],ord[,dim3]) env_var[tmp.keep=="TRUE"] } where env_var = a variable to be identified (e.g. plot IDs as in > row.names(dataframe)) ord = ordination points or s...
2015 Aug 27
1
[PATCH v2] customize: Use setarch when running commands on i686 guest
v2: Fix problem when running multiple commands.
2013 Aug 05
2
RemoteForward and dynamically allocated listen port
..... the client! Where it is practically useless. Was this someone's idea of a joke? Presumably not--there are some technical obstacles to reporting it to the remote process. I'd like to help solve that problem. The natural way to me would be to extend the syntax of RemoteForward to allow ENV_VAR:example.com:1234. This would set $ENV_VAR to the dynamically alocated port in the remote process. However, the protocol passes the listen port as a u_int. A hack might be to pack the env var name into the listen address and set the listen port to a special value to indicate this, but I don't...
2009 Nov 04
0
Possible bug in RTERM (PR#14043)
...Name: Andy Ashley Version: 2.10.0 OS: Windows XP SP3 Submission from: (NULL) (91.105.184.105) I am updating a legacy program which called Rterm from within Excel VBA as follows: Rexe = """C:\Program Files\R\R-2.4.0\bin\Rterm.exe""" Roptions = "" env_vars = " R_USER=" & dirname cmdstring = Rexe & Roptions & env_vars retval = Shell(cmdstring, 6) R then executes .Rprofile setwd(?dirname?) source('run.R') I had previously used R 2.4.0 and found that I could call functions in the base package OK, but...
2020 May 04
7
[PATCH 0/4] sysprep: add FreeIPA offline unenrollment (RHBZ#1789592)
This patch series adds a new virt-sysprep operation to offline unenroll a guest from FreeIPA. It does so by removing some configuration files and certificates. It requires a change in libguestfs-common before the series is applied. Pino Toscano (4): customize: port do_run to run_in_guest_command sysprep: add a update_system_ca_store side effect sysprep: ca-certificates: request system CA
2013 Nov 26
0
[LLVMdev] Help needed with a pass
I'm a newbie to LLVM and I've really been struggling to write a pass which changes the behavior of the following function: #include<stdlib.h>#include<stdio.h>#include<string.h>void foo(char* bar){const char* path;path=getenv(<SOME_ENV_VAR>); if (path!=NULL){strcpy(bar,path);}else{printf("env_var not set!");}} In the pass, I hope to invoke strncpy(dest,src,n) instead of strcpy(dest,src). After looking at the IR, this is what I've got so far: #include <stdlib.h>#include <stdio.h>#include "llvm/Pass.h&...
2015 Oct 29
7
[PATCH 0/7] v2v: Miscellaneous refactorings.
Just refactoring. Rich.
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing. My residual doubts center around the question whether we still do/want to support (un)compressed *byte*code in 2.0/2.1. I need a definitive word on this to proceed. My understanding is that bytecode is already gone, but there are still some functions/enums that really deal with *byte*code (instead of *bit*code). I did not touch those areas, so the attached
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge and interconnected. Anyway, what it does is lay the groundwork for a new tool which I'm calling 'virt-customize'. virt-customize is virt-builder, but without the part where it downloads a template from a respository. Just the part where it customizes the template, that is, installing packages, editing
2016 May 22
0
[PATCH 2/2] ocaml tools: Use a common debug function.
...quot; msg; + acc ) acc files ) [] dirs diff --git a/customize/customize_run.ml b/customize/customize_run.ml index a4d7c1a..4b3e13c 100644 --- a/customize/customize_run.ml +++ b/customize/customize_run.ml @@ -85,7 +85,7 @@ exec >>%s 2>&1 %s " (quote logfile) env_vars cmd in - if verbose () then printf "running command:\n%s\n%!" cmd; + debug "running command:\n%s" cmd; try ignore (g#sh cmd) with Guestfs.Error msg -> diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml index e1317a7..0ffa92c 100644 --- a/mlli...
2016 May 22
4
ocaml tools: Use a common debug function.
Add a Common_utils.debug function for printing messages only when in verbose mode. Rich.
2017 Nov 21
2
[PATCH v3 0/2] common/mlstdutils: Extend the List module.
v2 -> v3: - Renamed List.assoc_ -> List.assoc_lbl. - Rebased on top of current master branch. Rich.
2017 Oct 08
4
[PATCH 0/3] common/mlstdutils: Add Std_utils List and Option modules.
In Std_utils we already extend Char and String. These commits take it a little further by extending List and adding a new Option submodule. All basically simple refactoring. Rich.
2017 Oct 08
7
[[PATCH v2 0/4] common/mlstdutils: Add Std_utils List and Option modules.
This time including the first commit ...
2015 May 15
0
[PATCH 3/4] ocaml tools: Use global variables to store trace (-x) and verbose (-v) flags.
...quiet (g : Guestfs.guestfs) root (ops : ops) = +let run ~quiet (g : Guestfs.guestfs) root (ops : ops) = (* Timestamped messages in ordinary, non-debug non-quiet mode. *) let msg fs = make_message_function ~quiet fs in @@ -90,7 +90,7 @@ exec >>%s 2>&1 %s " (quote logfile) env_vars cmd in - if verbose then printf "running command:\n%s\n%!" cmd; + if verbose () then printf "running command:\n%s\n%!" cmd; try ignore (g#sh cmd) with Guestfs.Error msg -> @@ -206,7 +206,7 @@ exec >>%s 2>&1 if not (g#is_file path)...
2015 May 15
5
[PATCH 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
.. and a lot of refactoring. https://bugzilla.redhat.com/show_bug.cgi?id=1167623 Rich.
2015 May 15
6
[PATCH v2 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
https://bugzilla.redhat.com/show_bug.cgi?id=1167623