Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to check if ssh-agent is already running in bash

PID_SSH_AGENT=`eval ssh-agent -s | grep -Po "(?<=pid ).*(?=;)"`
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #check #running #bash
ADD COMMENT
Topic
Name
8+2 =