[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Signaling end of input with EOF by keyboard instead of file.



Hi all,

Say I have command 'foo' that takes a file 'bar' as input and does
something useful with it and is run like this:

$ foo < bar

Now foo expects EOF to stop accepting input and to exit and when
filtering in files as in the example above everything is perfect but foo
can also be run stand alone:

$ foo
_

and there doesn't seem to be anyway to send foo EOF with the keyboard to
cause it to exit so it runs forever until it's process is killed.

So can I send the EOF character with the keyboard?

Thanks,
Chris


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: