sixtoedsloth
IS-IT--Management
Hi there,
i am trying to get the username , ttyp ,ip address and/or name into a c program on sco openserver 5.0.5
i tried utmp which gives me the username and ttyp, but i cant get the others, it doesnt seem to support ut_addr??
SO... i thought id pipe who -mxu from the command line
ie ./myprog | who -mxu
and use that. but how do i read stdin, anyone have an example of doing this??
cheers
Russ
i am trying to get the username , ttyp ,ip address and/or name into a c program on sco openserver 5.0.5
i tried utmp which gives me the username and ttyp, but i cant get the others, it doesnt seem to support ut_addr??
SO... i thought id pipe who -mxu from the command line
ie ./myprog | who -mxu
and use that. but how do i read stdin, anyone have an example of doing this??
cheers
Russ