def get_job_id(short=True):
    """
    Return PBS job id
    """

    jobid = os.environ.get('PBS_JOBID', '')

    if short:
        # Strip off '.rman2'
        jobid = jobid.split('.')[0]

    return(jobid)
def get_job_id ( short = True ) : jobid = os . environ . get ( 'PBS_JOBID' , '' ) if short : jobid = jobid . split ( '.' ) [ 0 ] return ( jobid )
Return PBS job id