title: shell script containing ldapmodify - hardcoding commands
body: <p>I'm trying to run an ldapmodify command in a shell script, but I don't want to specify an external file containing commands (-f flag). This would just be for convenience - the commands in the external file would be dynamic, so it would be nice to avoid writing a new file every time the shell script ran ldapmodify. I would want the script to essentially enter the following into the command line:</p>
  
  <pre><code>prompt/&gt; ldapmodify -v -H LDAP://111.111.111.11 -D "CN=binding_user,DC=example,DC=com" -x -w password
  &gt; dn: CN=group_name, OU=Groups, DC=example, DC=com
  &gt; changetype: modify
  &gt; add: member
  &gt; member: CN=Smith\, John, OU=Users, DC=example, DC=com
  &gt; (user presses Ctrl-D)
  </code></pre>
  
  <p>Anyone know of how to do this?</p>