| if [ ! -d $MANAGIX_HOME/logs ]; |
| mkdir -p $MANAGIX_HOME/logs |
| LOGDIR=$MANAGIX_HOME/logs |
| if [ $DAEMON == "false" ]; then |
| cmd_output=$(ssh $IP_LOCATION "$ENV $SCRIPT $ARGS" 2>&1 >/dev/null) |
| echo "ssh $IP_LOCATION $ENV $SCRIPT $ARGS" >> $LOGDIR/execute.log |
| echo "ssh -l $USERNAME $IP_LOCATION $ENV $SCRIPT $ARGS" >> $LOGDIR/execute.log |
| cmd_output=$(ssh -l $USERNAME $IP_LOCATION "$ENV $SCRIPT $ARGS" 2>&1 >/dev/null) |
| echo "ssh $IP_LOCATION $ENV $SCRIPT $ARGS &" >> $LOGDIR/execute.log |
| ssh $IP_LOCATION "$ENV $SCRIPT $ARGS" & |
| echo "ssh -l $USERNAME $IP_LOCATION $ENV $SCRIPT $ARGS &" >> $LOGDIR/execute.log |
| ssh -l $USERNAME $IP_LOCATION "$ENV $SCRIPT $ARGS" & |