Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux: terminal output
#4
As an alternative using Linux libc function gethostname...

Code: (Select All)

DECLARE LIBRARY
    FUNCTION gethostname% (name AS STRING, BYVAL len AS _UNSIGNED LONG)
END DECLARE

DIM hostname AS STRING * 1024
IF gethostname(hostname, 1024) = 0 THEN
    PRINT hostname
END IF
Reply


Messages In This Thread
Linux: terminal output - by Parkland - 05-31-2025, 04:11 AM
RE: Linux: terminal output - by Parkland - 05-31-2025, 04:29 AM
RE: Linux: terminal output - by Parkland - 05-31-2025, 04:57 AM
RE: Linux: terminal output - by tantalus - 05-31-2025, 11:08 AM
RE: Linux: terminal output - by DSMan195276 - 06-08-2025, 04:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Make windows .exe using Linux version? Circlotron 7 509 01-15-2026, 09:42 PM
Last Post: ahenry3068
  QB64 odd behavior when Windows Terminal is set to default terminal app hanness 13 1,490 10-03-2025, 12:52 AM
Last Post: bert22306
  Linux Lubuntu INKEY$ issue TempodiBasic 7 647 09-09-2025, 02:53 PM
Last Post: hsiangch_ong
  Linux - file dialogue boxes... atl068 7 925 08-05-2025, 07:21 PM
Last Post: hsiangch_ong
  System Linux Chris 9 1,216 07-12-2025, 08:51 PM
Last Post: Chris

Forum Jump:


Users browsing this thread: 1 Guest(s)