close Warning: Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.

source: ogAgent-Git/linux/scripts/ogagent @ 9424789

main
Last change on this file since 9424789 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: 310 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
[eeb5b08]5done
6if [ -z "$PYTHON" ]; then
[1b0abe2]7    echo "ERROR: OGAgent needs Python 3" &>2
[eeb5b08]8    exit 1
9fi
10
[11f7a07]11FOLDER=/usr/share/OGAgent
12
13cd $FOLDER
[eeb5b08]14$PYTHON -m opengnsys.linux.OGAgentService $@
Note: See TracBrowser for help on using the repository browser.