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

Re: using at to restart dhcp server



Bonno Bloksma <b.bloksma@tio.nl> wrote:
> [...] some was new like the use of the letters EOF in stead of the
> "real" EOF character.

That's only because the OP used the << construct. Let me demonstrate.


In this example, where I've written ^D you would need to press Ctrl/D:

cat >/tmp/file1
type your stuff here
^D
wc /tmp/file1


In this example, where I've written STOP you would enter a line actually
containing that four letter word:

cat >/tmp/file2 <<STOP
type your stuff here
STOP
wc /tmp/file2


You'll see that the second example can be trivially copied from here
and pasted to a terminal, whereas the first cannot.

Chris


Reply to: