Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i X-Operating-System: Linux monster 2.2.18-crypt --- Hide.cpp --- #include #include 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