File: start

package info (click to toggle)
policycoreutils 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,496 kB
  • ctags: 2,458
  • sloc: python: 15,137; ansic: 11,618; sh: 1,119; makefile: 729; cpp: 315
file content (9 lines) | stat: -rw-r--r-- 160 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#! /usr/bin/python -Es
import gtk, commands, sys
rc = [-1,'']
try:
    rc=commands.getstatusoutput(sys.argv[1])
except:
    pass
if rc[0] == 0:
    print rc[1]