Sunday 15 May 2011

Is it possible to use fabric.contrib.files.append() on a local file? -


Trying to add to the local file using the fabric.

I would like to use

  append ('/ etc / ssh_config', ['\ n \ n host', '\ n \ tIdentityFile', '\ n \ user ('/ Etc / ssh_config') but it maliciously only tries on remote files   

  / P> 

Try attaching the app to local (): ['\ n \ nHost', '\ n \ tIdentityFile', '\ n \ user'])) < P> ... fails miserably ...

Do not think so.

If you look at the loops through the lines, then any regexes in the line gets raised and if the line is not already present in a file based on a egrep check, So it's a echo line & gt; & Gt;

No comments:

Post a Comment