repl.it
@paulfears/

linux_terminal

Python

No description

fork
loading
Files
  • main.py
  • clone.py
  • code
  • define.py
  • go.sh
  • hello.c
  • hello.cpp
  • index.html
  • Java-Hello-World.java
  • local.env
  • music_map.py
  • perl.pl
  • python_input_test.py
  • readme.txt
  • run
  • sms_lookup.py
  • test.py
  • urban_dict.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import youtube_dl
#import paramiko as ssh
#shell = ssh.SSHClient()
#shell.connect('192.168.1.28', username='pi', password=os.getenv("pass"))
#out, err = shell.ssh('ls')
#print(out)
print('please read readme.txt first\n\n')
print('unless you already know how to use a linux console ;)\n\n')
while True:
  a = input(">")
  if(a == 'clear'):
    import replit
    replit.clear()
  if(a == "install go"):
    import subprocess
    subprocess.call("/home/runner/go.sh", shell=True)
    continue
  a = os.popen(a)
  print(a.read())