You are not logged in.

#1 2008-10-19 19:18:27

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

EOF character?

From perl or some other scripting language, what could I print to a pipe to signal EOF the way that ctrl-d does in the console?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2008-10-19 23:03:01

catwell
Member
From: Bretagne, France
Registered: 2008-02-20
Posts: 207
Website

Re: EOF character?

I think print "\x04" should work.

Offline

#3 2008-10-20 00:01:14

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: EOF character?

Yep.

Thanks catwell.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB