source: ogAgent-Git/linux/scripts/OGAgentTool @ de4289a

decorare-oglive-methodsfix-urlfixes-winlgromero-filebeatmainmodulesnew-browserno-ptt-paramogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1oglogoglog2override-moduleping1ping2ping3ping4py3-winpython3report-progresssched-tasktlsunification2unification3versionswindows-fixes
Last change on this file since de4289a was 1b0abe2, checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago

#940: Adapting OGAgent for Linux to Python 3

  • Property mode set to 100755
File size: 291 bytes
RevLine 
[11f7a07]1#!/bin/sh
2
[1b0abe2]3for p in python python3; do
4    [ -z "$PYTHON" ] && [ $($p -c 'import sys; print(sys.version_info[0])') -eq 3 ] && PYTHON=$p
[b2c8207]5done
6if [ -z "$PYTHON" ]; then
[1b0abe2]7    echo "ERROR: OGAgent needs Python 3" &>2
[b2c8207]8    exit 1
9fi
10
[11f7a07]11FOLDER=/usr/share/OGAgent
12
13cd $FOLDER
[dd16198]14$PYTHON OGAgentUser.py $@
Note: See TracBrowser for help on using the repository browser.