Glen Herrmannsfeldt <gah@ugcs.caltech.edu> scribbled the following:[color=blue]
> "Joona I Palaste" <palaste@cc.helsinki.fi> wrote in message
> news:bnil6s$63n$1@oravannahka.helsinki.fi...[color=green]
>> PeterW <member45765@dbforums.com> scribbled the following:[color=darkred]
>> > Originally posted by Jay
>> >> I need to write a program to find mac address of a remote computer, is
>> >> this possible? How?[/color]
>>[color=darkred]
>> > If you can run a remote shell on the machine, you can run ifconfig and
>> > parse the result with grep from the standard output.[/color]
>>[color=darkred]
>> >> rsh remoteHost sbin/ifconfig | grep "^eth0"
>> > eth0 Link encap:Ethernet HWaddr 00:0D:29:A8:80:44[/color]
>>[color=darkred]
>> > You can use cut or awk to extract the MAC hardware address.[/color]
>>
>> Which part of this had anything at all to do with C?[/color][/color]
[color=blue]
> ifconfig, grep, cut, and awk are all C programs.[/color]
But this newsgroup is about C, not C programs.
--
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\--
http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Immanuel Kant but Genghis Khan."
- The Official Graffitist's Handbook