Skip to content

Commit f7ab016

Browse files
committed
replace telnet with /dev/tcp check #8
1 parent 5aba718 commit f7ab016

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Installation in general:
5757
```
5858

5959
### Installation in Cygwin
60-
- Run the Cygwin installer and install packages `xinit`, `xauth`, `wget` and `inetutils`.
60+
- Run the Cygwin installer and install packages `xinit`, `xauth` and `wget`.
6161
- In Cygwin terminal run the commands:
6262
```
6363
wget https://raw.githubusercontent.com/mviereck/runx/master/runx -O /usr/local/bin/runx

runx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22
# runx: Provide an X server in Cygwin, MSYS2 or WSL.
33

4-
Version="v0.4.6"
4+
Version="v0.4.8"
55

66
usage() { # Usage information (--help)
77
echo "runx - Run Linux GUI applications on MS Windows.
@@ -280,7 +280,7 @@ check_display() { # Find unused display number
280280
return 1
281281
}
282282
check_displayport() { # Return 0 if display number $1 is in use
283-
echo "quit" | env LC_ALL=C telnet "$Hostip" "$((6000+${1:-}))" 2>&1 | grep -q "Connected"
283+
</dev/tcp/"$Hostip"/$((6000+${1:-})) >/dev/null 2>&1
284284
}
285285
check_host() { # Check host environment
286286

0 commit comments

Comments
 (0)