delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Sat, 26 May 2001 23:40:59 -0400 |
From: | linguist-cygwin AT rich-paul DOT net |
To: | cygwin AT cygwin DOT com |
Subject: | Tiny but useful code snippet: |
Message-ID: | <20010526234059.A27356@monster.master-link.org> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.16i |
X-Operating-System: | Linux monster 2.2.18-crypt |
--- Hide.cpp --- #include <process.h> #include <stdio.h> int main ( int argc, char **argv) { if ( argc < 2 ) { printf("usage: %s [program] [arg1] [arg2]\n", argv[0]); return -1; }; if ( _spawnvp(_P_DETACH,argv[1], argv+1) ) { perror("_spawnvp"); exit(1); }; return 0; }; --- Hide.cpp --- --- sshagent --- ssh-agent > ~/.ssh-agent --- sshagent --- --- .bashrc: --- if tty -s ; then . ~/.ssh-agent fi --- .bashrc --- to compile: CXX_FLAGS=-mno-cygwin make Hide to run ssh-agent out of sight and out of mind: bash$ ./Hide bash sshagent bash$ exec bash -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |