Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to coding
#1
I am new to python, if someones help or guide will be the great thankful.

Need to read file which has content like (aaa,bbb,ccc,ddd,.....) this may change everytime.

Read first column (aaa) and grep with the process ps -ef | grep -i aaa. it will give 4 lines. Get the out put of 4th line 8th column.

out put should be

Example:
aaa 11111 (8th column)
bbb 22222
ccc  33333

my code here
Reply


Messages In This Thread
New to coding - by allwinchris - May-23-2017, 10:31 AM
RE: New to coding - by buran - May-23-2017, 10:37 AM
RE: New to coding - by allwinchris - May-23-2017, 10:40 AM
RE: New to coding - by nilamo - May-31-2017, 07:31 PM

Forum Jump:

User Panel Messages

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