xshell lag when execute shell script [1]

xshell lag when execute shell script

Wednesday, May 9, 2018 11:08 AM - alan

I have a very simple shell script:
----------
#!/bin/bash

#echo "1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1"
for i in {1..23}; do printf "1."; done

start=$(date +%s)
read -p "input a char:" user_ack
echo ">>>: $user_ack"
end=$(date +%s)
echo "time:$((end-start))";
---------------
When execute this in xshell, the xshell UI will lag for a while, if change the 23 in for circulation to a larger number, the lag time will be longer.
This an odd appearance to me, and I try this script in other shell client, it work with expectation, desktop terminal is OK too.
Last, I try this script in xshell 5, it's no lag.
So, what is the problem with my script?

Program Ver. : Xshell 6


Re: xshell lag when execute shell script

Tuesday, May 15, 2018 1:01 AM - Support

We believe this may not be a common issue. Our tests showed no errors or log when executing this script.

Therefore, the issue seems to be related to something else which we will continue to investigate.

Technical Support

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


Previous views: 232