mirror of
https://github.com/tcsenpai/powertux.git
synced 2025-06-06 03:05:24 +00:00
Python is required. This module aims to be an easy way to run things detaching both output and process
This commit is contained in:
parent
f65b9cf82f
commit
52fb8698ba
19
bin/phantom
Executable file
19
bin/phantom
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/python
|
||||
#
|
||||
# This module aims to be an easy way to run things detaching both output and process
|
||||
# It requires a $1
|
||||
#
|
||||
#
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
print(len(sys.argv))
|
||||
|
||||
if not len(sys.argv)==2:
|
||||
print("Error: no argument provided or too many arguments provided.\nUse 'something like this' to execute commands with spaces.")
|
||||
exit()
|
||||
|
||||
print(sys.argv[1])
|
||||
|
||||
os.system(sys.argv[1] + " </dev/null &>/dev/null &")
|
Loading…
x
Reference in New Issue
Block a user