Xshell Forum

xshell login scripts question

Last post: Monday, January 4, 2016 8:18 PM by Support, 1 reply

 
Tuesday, December 29, 2015 1:12 PM - sbaaaa

xshell login scripts question

 
In the login script,How to perform a first command output is completed after execution of the second command
case:
P7200_yjfj_yz cli% shownode -d
showbattery -d
-------------------------------------------Nodes--------------------------------------------
Control Data Cache
Node --Name--- -State- Master InCluster -Service_LED- ---LED--- Mem(MB) Mem(MB) Available(%)
0 1627107-0 OK Yes Yes Off GreenBlnk 8192 4096 100
1 1627107-1 OK No Yes Off GreenBlnk 8192 4096 100

Desired results are as follows:
P7200_yjfj_yz cli% shownode -d
-------------------------------------------Nodes--------------------------------------------
Control Data Cache
Node --Name--- -State- Master InCluster -Service_LED- ---LED--- Mem(MB) Mem(MB) Available(%)
0 1627107-0 OK Yes Yes Off GreenBlnk 8192 4096 100
1 1627107-1 OK No Yes Off GreenBlnk 8192 4096 100
P7200_yjfj_yz cli% showbattery -d

Program Ver. : Xshell 4
Attachment case.JPG (58.5 KB)  
Monday, January 4, 2016 8:18 PM - Support

Re: xshell login scripts question

 
xsh.screen.send("shownode -d"+vbCr)
xsh.screen.send("showbattery -d"+vbCr)

Usually in a script, if a string of the first command is sent, another string of the second command waits until the previous command ends.

Is this causing an issue for you?

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog