Python Forum
Problem keeping the window up
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem keeping the window up
#11
i figured it out, had to add wait...
This is the code that worked.

#!/usr/bin/python3

this is the 'starter.py' file
import subprocess
p=subprocess.Popen(["gnome-terminal","--","/home/graham/Desktop/backupwatcher/backup-client.py"])
p.wait()
Thanks to everyone that took the time to help Smile
Reply
#12
(Jan-23-2020, 05:13 PM)tamilselvisubbiah Wrote: i am new to python coding. Just wrote code to filter the first column of pvs output and redirect to one file. below is my code .while running i am getting error variable value not giving output from sys import stdin import os import sys import subprocess import shutil import datetime #import commands today = datetime.datetime.today() global vgname vgname=raw_input("enter the vgname: ") cmd='(pvs | grep + vgname) | (awk \'{print $1}\') > sel.txt' os.system(cmd) [root@localhost Python-3.6.3]# python rack.py enter the vgname: vg01 grep: vgname: No such file or directory [root@localhost Python-3.6.3]# Some one please help me to fix this
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,743 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Keeping up with IDEs and Virtual Environments... bytecrunch 7 2,488 Sep-05-2022, 08:04 PM
Last Post: snippsat
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,167 Jun-13-2022, 08:59 AM
Last Post: Shena76
  Keeping a value the same despite changing the variable it was equated to TheTypicalDoge 2 1,454 Mar-13-2022, 10:50 PM
Last Post: Yoriz
  merging lists, dedup and keeping order, in older pythons Skaperen 3 3,163 Oct-19-2018, 01:30 AM
Last Post: ODIS
  Keeping Intersection of an Image Only Anysja 4 2,943 Aug-15-2018, 09:47 PM
Last Post: Anysja
  help with keeping score W3BL3Y 2 6,250 Apr-29-2018, 01:12 PM
Last Post: W3BL3Y

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020