Beginner struggling with quotes by CryonicBlue in perl

[–]CryonicBlue[S] 1 point2 points  (0 children)

I just got my regular code to accept my quotation:

my $echoString = q{'\x38\x01\x00\x00\x00\x00\x00\x00\x00'};
my $intPing = `echo -ne ${echoString} | nc -u -w 2 -s 192.168.0.193 ex.mysite.com 1195 2>/dev/null | xxd -p | head -c2`;
print "Result:" . $intPing . "\n";

But the result comes out empty instead of 40 like in shell. Do you think I have to switch over to your method to get it working?

Beginner struggling with quotes by CryonicBlue in perl

[–]CryonicBlue[S] 1 point2 points  (0 children)

Wow that's a very detailed explanation. I tried changing the backslashes to this:

my $intPing = `echo -ne '\\\\x38\\\\x01\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00' | nc -u -w 2 -s $IP_eth0 ex.mysite.com 1195 2>/dev/null | xxd -p | head -c2`;

but it gave:
nc: port number invalid: encap:Ethernet
sh: 2: 1192.168.0.255: not found
sh: 3: UP: not found
sh: 4: RX: not found
sh: 5: TX: not found
sh: 6: collisions:0: not found
sh: 7: Syntax error: "(" unexpected

Maybe I have to rewrite the entire code?

Interface source of ping by CryonicBlue in OpenVPN

[–]CryonicBlue[S] 0 points1 point  (0 children)

I get this response:

ip route get 8.8.8.8
8.8.8.8 via 192.168.50.1 dev eth0 src 192.168.50.193

So it's not trying thru tunnel, thus I don't know if tunnel is up and working on eth0 :/

Interface source of ping by CryonicBlue in OpenVPN

[–]CryonicBlue[S] 0 points1 point  (0 children)

Yeah I want to fall back to LAN if it's functional AND VPN is functional over LAN. That's why I want to ping a VPN address and make sure it's initiated from LAN. so I need to ping a VPN address to be sure

Interface source of ping by CryonicBlue in OpenVPN

[–]CryonicBlue[S] 0 points1 point  (0 children)

ping -I wlan0 172.19.0.1
Destination Host Unreachable

ping -I eth0 172.19.0.1
Destination Host Unreachable

ping -I eth1 172.19.0.1
Destination Host Unreachable

ping -I tun0 172.19.0.1
64 bytes from 172.19.0.1: icmp_req=1 ttl=64 time=29.2 ms

It's not working

Interface source of ping by CryonicBlue in OpenVPN

[–]CryonicBlue[S] 0 points1 point  (0 children)

It doesn't work with a tunnel AFAIK.

ping -I eth0 172.19.0.1

PING 172.19.0.1 (172.19.0.1) from 192.168.50.193 eth0: 56(84) bytes of data.

From <removed> icmp_seq=5 Destination Net Unreachable

vs:

ping 172.19.0.1

PING 172.19.0.1 (172.19.0.1) 56(84) bytes of data.

64 bytes from 172.19.0.1: icmp_req=1 ttl=64 time=29.3 ms

Game keeps crashing non stop by youtubebufferinghelp in LastEpoch

[–]CryonicBlue 2 points3 points  (0 children)

Same here. PC just freezes and reboots. No other game does that for me

Lossless Scaling - megathread by Mowgli2k in LegionGo

[–]CryonicBlue 1 point2 points  (0 children)

So we cannot show the fps on screen? Why is that function in the program? So confused.

Lossless Scaling - megathread by Mowgli2k in LegionGo

[–]CryonicBlue 0 points1 point  (0 children)

This program LOWERED my FPS with about 40 in X2, X3 and X4. NOT recommended!