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



Users browsing this thread: 1 Guest(s)