Paste #270166

   
pasted on 18.07.2023 11:28
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 274706
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import time
import os.path
import subprocess
import shlex
import random
from sys import argv

#time.sleep(float(argv[1]))

if os.path.isfile('/tmp/signal'):
	os.remove('/tmp/signal')
	exit()
else:
	open('/tmp/signal', "w").close()

subprocess.call(shlex.split('env DISPLAY=:0 lua lo.lua'))
while True:
	if os.path.isfile('/tmp/signal'):
		subprocess.call(shlex.split('env DISPLAY=:0 sh l211.sh'))
		x = random.randint(183, 317)
		x1 = "0.1"
		x = str(x)
		x1 = str(x1)
		x = x1 + x
		x = float(x)
		print(x)
		time.sleep(x)
		subprocess.call(shlex.split('env DISPLAY=:0 sh l212.sh'))
		x = random.randint(212, 293)
		x1 = "0.1"
		x = str(x)
		x1 = str(x1)
		x = x1 + x
		x = float(x)
		time.sleep(x)
	else:
		break
Add Comment
Author