Skip to content

Instantly share code, notes, and snippets.

@Daemonslayer2048
Last active June 11, 2019 13:29
Show Gist options
  • Save Daemonslayer2048/be6045f61b5ce57ca001c8d064afbd6d to your computer and use it in GitHub Desktop.
Save Daemonslayer2048/be6045f61b5ce57ca001c8d064afbd6d to your computer and use it in GitHub Desktop.
For loops with example list #Python
import subprocess
times = ["13:00", "13:52"]
for time in times:
subprocess.call('echo "touch /home/jhanafin/IAmAlive.txt" | at ' + time, shell=True)õ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment