Python Forum
Problem keeping the window up
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem keeping the window up
#10
i am need 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


Messages In This Thread
Problem keeping the window up - by benlyboy - Jan-22-2020, 02:31 AM
RE: Problem keeping the window up - by michael1789 - Jan-22-2020, 02:47 AM
RE: Problem keeping the window up - by benlyboy - Jan-22-2020, 10:33 AM
RE: Problem keeping the window up - by michael1789 - Jan-22-2020, 07:29 PM
RE: Problem keeping the window up - by benlyboy - Jan-23-2020, 12:00 PM
RE: Problem keeping the window up - by michael1789 - Jan-23-2020, 01:50 PM
RE: Problem keeping the window up - by benlyboy - Jan-23-2020, 05:10 PM
RE: Problem keeping the window up - by tamilselvisubbiah - Jan-23-2020, 05:13 PM
RE: Problem keeping the window up - by benlyboy - Jan-23-2020, 11:47 PM

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,799 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Keeping up with IDEs and Virtual Environments... bytecrunch 7 2,532 Sep-05-2022, 08:04 PM
Last Post: snippsat
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,185 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,468 Mar-13-2022, 10:50 PM
Last Post: Yoriz
  merging lists, dedup and keeping order, in older pythons Skaperen 3 3,177 Oct-19-2018, 01:30 AM
Last Post: ODIS
  Keeping Intersection of an Image Only Anysja 4 2,973 Aug-15-2018, 09:47 PM
Last Post: Anysja
  help with keeping score W3BL3Y 2 6,277 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