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
----------
#!/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
Previous views: 232