fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] environ context manager


From: Michael Gliwinski
Subject: [Fab-user] environ context manager
Date: Wed, 1 Dec 2010 15:45:14 +0000
User-agent: KMail/1.13.5 (Linux/2.6.35-22-generic; KDE/4.5.3; x86_64; ; )

Hi all,

I just noticed the new path and prefix context managers added to master, nice 
touch :) .  How easy would it be to refactor path into a more generic environ 
(or sth) context manager (or create a new one) which prepends VAR=VALUE pairs 
to the command?

I just found myself needing that when writing something that needed 
http(s)_proxy variables.

I think the complexity will be with sudo as it doesn't always preserve the 
environment, the usual ways around it are to put VAR=VALUE pairs after 'sudo' 
but before the command being executed (if setenv sudoers option is set) or 
using /usr/bin/env.

Thoughts?


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify address@hidden

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************




reply via email to

[Prev in Thread] Current Thread [Next in Thread]