Category : gnome-terminal

To automate simulations I created a single bash script (see beelow) running 3 python programs in parallel, interconnected with sockets, each in a new terminal. (The behavior of the software requires the 3 subprograms to be ran in separate terminals) #!/bin/bash gnome-terminal — ./orchestrator.py -c config/orchestrator/configWorstCaseRandomV.yml -v gnome-terminal — ./server.py -c config/server/config.yml -s config/server/systems/ault14mix.yml –simulate ..

Read more

I am working on UBUNTU and I have file main.py with a code inside: #!/usr/bin/env python3 # coding=utf-8 import os import time from subprocess import Popen, PIPE, call, signal base_path = os.path.abspath(”) path_to_file = base_path + ‘/test_subprocess.py’ p = Popen([‘gnome-terminal’, "–", path_to_file]) time.sleep(2) os.kill(p.pid, signal.SIGKILL) I have test_subprocess.py with code like that: #!/usr/bin/env python3 # ..

Read more

I updated python3.5.2 to python3.8. I configured python3 to work with python3.8. sudo update-alternatives –config python3 give me this : Sélection Chemin Priorité État ———————————————————— 0 /usr/bin/python3.8 2 mode automatique 1 /usr/bin/python3.5 1 mode manuel * 2 /usr/bin/python3.8 2 mode manuel I downloaded pip3 (version 20.3.3) for python3(ie for 3.8) then I installed jupyter and ..

Read more

I would like to know how to suppress the Google flow output to make my output more clean. Here is the Quickstart.py code: creds =None if os.path.exists(‘token.pickle’): first_time_login = False with open(‘token.pickle’, ‘rb’) as token: creds = pickle.load(token) # If there are no (valid) credentials available, let the user log in. if not creds or ..

Read more

I am new in using os.system (in Python 3) and am trying to execute a program that I would normally run in a Linux terminal. I need to iterate a few times and am using something like the following loop: for item in item_list: os.system("gnome-terminal — program_execute "+item) The problem is that this loop simutaneously ..

Read more