<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add text to a file via a script in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23762#M2134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This all started because I wanted to add SSH keys to an authorized_keys file.&amp;nbsp; (In linux this is VERY simple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the basic commands appear to be there: echo, wrfile -a, rdfile....&lt;/P&gt;&lt;P&gt;But there was no way to pipe the commands or redirect input/output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume that I don't have CIFS or NFS access to my filer, how can I add some random text to a file using ssh or rsh access? The most user interaction I'm looking for is maybe entering a password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Enhancement Requests!&lt;/P&gt;&lt;P&gt;Please add some basic BASH features like:&lt;/P&gt;&lt;P&gt;autocomplete&lt;/P&gt;&lt;P&gt;proper ability to use home/end keys&lt;/P&gt;&lt;P&gt;When alerts come up on the console, don't have them inserted into the command line. I know the system does not recognize them, but it is very confusion when typing.&amp;nbsp; And of course the problem always happens when you need to use the command line to fix a problem so of course there are tons of alerts cluttering up the command line.&lt;/P&gt;&lt;P&gt;A full SSH suite (like scp sftp...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob Brandt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:59:44 GMT</pubDate>
    <dc:creator>opwnetapp</dc:creator>
    <dc:date>2025-06-05T05:59:44Z</dc:date>
    <item>
      <title>How to add text to a file via a script</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23762#M2134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This all started because I wanted to add SSH keys to an authorized_keys file.&amp;nbsp; (In linux this is VERY simple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the basic commands appear to be there: echo, wrfile -a, rdfile....&lt;/P&gt;&lt;P&gt;But there was no way to pipe the commands or redirect input/output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume that I don't have CIFS or NFS access to my filer, how can I add some random text to a file using ssh or rsh access? The most user interaction I'm looking for is maybe entering a password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Enhancement Requests!&lt;/P&gt;&lt;P&gt;Please add some basic BASH features like:&lt;/P&gt;&lt;P&gt;autocomplete&lt;/P&gt;&lt;P&gt;proper ability to use home/end keys&lt;/P&gt;&lt;P&gt;When alerts come up on the console, don't have them inserted into the command line. I know the system does not recognize them, but it is very confusion when typing.&amp;nbsp; And of course the problem always happens when you need to use the command line to fix a problem so of course there are tons of alerts cluttering up the command line.&lt;/P&gt;&lt;P&gt;A full SSH suite (like scp sftp...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob Brandt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:59:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23762#M2134</guid>
      <dc:creator>opwnetapp</dc:creator>
      <dc:date>2025-06-05T05:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add text to a file via a script</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23768#M2135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, we cannot pipe commands in NetApp using NetApp console. but i can be performed, if you will set password less authenticaion using linux/unix server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) if you don't have access to NFS or CIFS shares and you want to add text to file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use following procedure, i am taking example of host file in Netapp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login to NetApp console.&lt;/P&gt;&lt;P&gt;rdfile /etc/hosts {this will show you existing contents. copy these contents}&lt;/P&gt;&lt;P&gt;wrfile /etc/hosts&lt;/P&gt;&lt;P&gt;"add your text existing and New"&lt;/P&gt;&lt;P&gt;Ctrl + C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will use password less authentication. You can easily avoid annoying message on command line console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:57:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23768#M2135</guid>
      <dc:creator>sharmadevender</dc:creator>
      <dc:date>2013-06-25T14:57:31Z</dc:date>
    </item>
    <item>
      <title>How to add text to a file via a script</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23773#M2136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also you can use bash/awk/sed/perl scripts using password less authentication. it includes editing text files on Netapp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 15:02:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-to-add-text-to-a-file-via-a-script/m-p/23773#M2136</guid>
      <dc:creator>sharmadevender</dc:creator>
      <dc:date>2013-06-25T15:02:11Z</dc:date>
    </item>
  </channel>
</rss>

