diff --git a/LSF-Script/collection/userCount b/LSF-Script/collection/userCount new file mode 100644 index 0000000000000000000000000000000000000000..7d608691f162395e9e4ae5e7de31276ae948efe1 --- /dev/null +++ b/LSF-Script/collection/userCount @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +import os + +USERS_CMD = 'source @SCHEDULER_PROFILE_PATH@; timeout 10 busers all' + +arrayUsersInfo = os.popen(USERS_CMD).read().splitlines() + +print(len(arrayUsersInfo) - 1) \ No newline at end of file