On Wed, 22 May 2013 17:04:01 +0200 (CEST), Tamas TEVESZ <
i...@extreme.hu>
wrote:
> nevermind, here's a straight copy off clip, adapted for harbour. it's
> supposed to work on linux (not so sure about other platforms), but
> that should get you going.
>
siki@vampire:~/prg/test$ hbmk2 tttt.prg
hbmk2: Processing environment options: -compiler=gcc
Harbour 3.1.0dev (Rev. 17260)
Copyright (c) 1999-2012,
http://harbour-project.org/
Compiling 'tttt.prg'...
Lines 111, Functions/Procedures 2
Generating C source output to '/tmp/hbmk_i66elp.dir/tttt.c'... Done.
tttt.prg: In function 'HB_FUN_HB_GETHOSTBYNAME':
tttt.prg:37: warning: initialization discards qualifiers from pointer
target type
tttt.prg: In function 'HB_FUN_HB_UTADDR':
tttt.prg:99: warning: comparison between signed and unsigned integer
expressions
siki@vampire:~/prg/test$ ./tttt
Remote addr:
something are wrong
using tty show that using tty pts/3
siki@vampire:~/prg/test$ tty
/dev/pts/3
siki@vampire:~/prg/test$ w
17:32:58 up 6 days, 10:30, 7 users, load average: 0,75, 0,74, 0,67
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
kriz pts/0 tk048:0.0 14:21 1:18m 41.08s 0.01s /bin/bash
/usr/
touch pts/1 touch 13:21 4:11m 39.12s 0.01s /bin/bash
/usr/
immuno pts/2 tk047:0.0 Tue15 11:59 32:04 0.01s /bin/bash
/usr/
siki pts/3 tk045:0.0 15:08 1.00s 0.54s 9.59s
gnome-terminal
expedice pts/4 tk046:0.0 Tue17 14:28 41:12 0.01s /bin/bash
/usr/
siki pts/8 tk045:0.0 14:28 2:59m 0.34s 0.34s bash
siki pts/6 tk045:0.0 14:22 2:41m 0.65s 0.26s vim
pac_def.prg
output from w show that I running form host tk045