Hi all!

I know this is a very stupid question for a programmer but I am not able to find a solution.

I have a program: etherwake.

It is used to wake on lan a PC using its mac address.

I simply want to "feed" etherwake with a mac address contained in a text file.

I've tried

cat filename | etherwake

etherwake < `cat filename`

without any kind of luck...

I always get:

Specify the Ethernet address as 00:11:22:33:44:55

Of course if I do a cimple cat filename I get a perfect mac address, without blank spaces or any kind of strange characters.

What am I doing wrong?