It’s commonly used in benchmarking because it’s relatively demanding-and because it has a convenient built-in benchmarking system. Shadow of the Tomb Raider is a sterner test, despite being released in 2019 on Mac (and 2018 on Windows). Minecraft, unsurprisingly, runs brilliantly, even when you add complex shaders. But it gets hot, due to the lack of a fan and games requiring sustained performance. It’s also a relatively power-efficient machine. If you want anything newer, go and buy an actual console.įirst, the good news: The M2 MacBook Air’s speakers are great, the keys are responsive (if you’re a masochist who eschews external controllers), and the screen is bright with great color reproduction. ARM-specific PS2 emulator AetherSX2 was better, despite the odd visual wobble. Our Xbox emulation tests resulted in frame rates all over the shop. Should you head into more modern (and shakier legal) territory, things are more variable. Fortunately, there’s Redream for Dreamcast, and the superb and user-friendly OpenEmu supports a slew of older systems, especially in its “experimental” incarnation. The snag is that relatively few emulators exist for Mac. A Raspberry Pi 4 can play Sega Dreamcast titles without blinking, so you’d expect an M2 Mac to go much further. Despite the games being old, the service still requires a fast connection to avoid glitches.Įmulation is another option for playing old games. SUCCESS=$(eztern "$RESULT" "Escape character is '^]'.Antstream Arcade Apple via Craig GrannellĮntertainingly, a streaming service exists for exploring the other end of gaming history: Antstream Arcade has hundreds of classic titles, along with leaderboards and bespoke challenges, like taking on Space Invaders with a single life. RESULT=$(eztimeout $TIMEOUT_IN_SEC telnet $HOST $PORT &> $FILENAME cat $FILENAME | tail -n1) # and looking for "Escape character" response # by saving telnet output to temporary file Command: $ timeout $TIMEOUT_SECONDS bash -c " $ timeout 1 bash -c 'cat /dev/tcp//80'īash: : Name or service not knownīash: /dev/tcp//80: Invalid argument # Connection failure prior to the timeout If you have a recent enough version of bash, this will work: # Connection successful: It's easy enough to do with the -z and -w TIMEOUT options to nc, but not all systems have nc installed. Note: This is what my server is running (where I need to run this from) I know of the Perl method, which uses the IO::Socket::INET module and wrote a successful script that tests a port, but would rather like to avoid using Perl if possible. I either need a better way, or a way to force telnet to timeout if it doesn't connect in under 8 seconds for example, and return something I can catch in Shell (return code, or string in stdout). Here's a sample: l_TELNET=`echo "quit" | telnet $SERVER $PORT | grep "Escape character is"`Įcho "Connection to $SERVER on port $PORT failed"Įcho "Connection to $SERVER on port $PORT succeeded" I've managed to do it with the telnet command, and it works fine when the port is opened, but it doesn't seem to timeout when it's not and just hangs there. I'm looking for a quick and simple method for properly testing if a given TCP port is open on a remote server, from inside a Shell script.
0 Comments
Leave a Reply. |