0 0 1
default
Jean-Francois Pieronne - 5 years ago 2014-10-20 18:10:16
jf.pieronne@laposte.net
Initial version of ptd1.py
1 file changed with 17 insertions and 0 deletions:
↑ Collapse Diff ↑
 
new file 100755
1
 
from vms.starlet.ptdlib import Ptd
2
 

	
3
 
def execute(ptd, cmd):
4
 
    e,lines = ptd.execute(cmd)
5
 
    print e,
6
 
    for line in lines:
7
 
        print line,
8
 

	
9
 
ptd = Ptd()
10
 
lines = ptd.read_until_prompt()
11
 
for line in lines:
12
 
    print line,
13
 

	
14
 
execute(ptd, 'set terminal/device=vt200')
15
 
execute(ptd, 'show terminal')
16
 
execute(ptd, 'show default')
17
 
execute(ptd, 'show symbol $status')
0 comments (0 inline, 0 general)