import subprocess

from apscheduler.scripts import Script

class ShellScript(Script):
    def __init__(self, content):
        self.type = 'shell'

    def run(self):
        #return subprocess.check_output(self.content.split())
        ##
        retcode = subprocess.check_call(self.content.split())
        if retcode > 0:
            return False
        return True

7d4efbcda13bdeaeb63728505ed220396238e647
<mask token>


class ShellScript(Script):
    <mask token>
    <mask token>

<mask token>


class ShellScript(Script):
    <mask token>

    def run(self):
        retcode = subprocess.check_call(self.content.split())
        if retcode > 0:
            return False
        return True

<mask token>


class ShellScript(Script):

    def __init__(self, content):
        self.type = 'shell'

    def run(self):
        retcode = subprocess.check_call(self.content.split())
        if retcode > 0:
            return False
        return True

import subprocess
from apscheduler.scripts import Script


class ShellScript(Script):

    def __init__(self, content):
        self.type = 'shell'

    def run(self):
        retcode = subprocess.check_call(self.content.split())
        if retcode > 0:
            return False
        return True

import subprocess

from apscheduler.scripts import Script

class ShellScript(Script):
    def __init__(self, content):
        self.type = 'shell'

    def run(self):
        #return subprocess.check_output(self.content.split())
        ##
        retcode = subprocess.check_call(self.content.split())
        if retcode > 0:
            return False
        return True
