Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm configuring a kickstart profile and I'd like to create some script file.

I'm doing like this:

cat <<EOF >>/scripts/
my $int;
`useradd me`;

After the PXE boot and installation process, when I check the file, everything starting with "$", and line starting with backquote disappeared.

Back-slashing backquotes seems to have worked, but not $.

Is there a way to make this work ?

share|improve this question
up vote 3 down vote accepted

Try: cat <<'EOF' >>/scripts/

This is a parameter substitution issue.

share|improve this answer
Thanks that was just that :) – Bastien974 Jun 15 '11 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.