<?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 Re: Guestshell open file on flash with Python in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078507#M2005</link>
    <description>It should be '/bootflash' instead of '/flash' as mentioned by &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/513338"&gt;@omz&lt;/a&gt;</description>
    <pubDate>Sun, 03 May 2020 11:33:26 GMT</pubDate>
    <dc:creator>ngkin2010</dc:creator>
    <dc:date>2020-05-03T11:33:26Z</dc:date>
    <item>
      <title>Guestshell open file on flash with Python</title>
      <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078468#M2002</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I open a file on flash from Guestshell with Python?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 06:43:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078468#M2002</guid>
      <dc:creator>nathy1984</dc:creator>
      <dc:date>2020-05-03T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Guestshell open file on flash with Python</title>
      <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078477#M2003</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As I remember, the absolute path of flash drive is '/flash' in guestshell. Make sure you got at least 'read' file permission, and you could open the file by Python.&lt;BR /&gt;&lt;BR /&gt;fd = open('/flash/filename','r')&lt;BR /&gt;</description>
      <pubDate>Sun, 03 May 2020 07:46:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078477#M2003</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2020-05-03T07:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Guestshell open file on flash with Python</title>
      <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078500#M2004</link>
      <description>&lt;PRE&gt;file = open('/bootflash/test.txt','r')
print file.read()
file.close()
&lt;BR /&gt;OR &lt;BR /&gt;
with open('/bootflash/test.txt','r') as file:
    print file.read()&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 May 2020 10:26:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078500#M2004</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-05-03T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Guestshell open file on flash with Python</title>
      <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078507#M2005</link>
      <description>It should be '/bootflash' instead of '/flash' as mentioned by &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/513338"&gt;@omz&lt;/a&gt;</description>
      <pubDate>Sun, 03 May 2020 11:33:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4078507#M2005</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2020-05-03T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Guestshell open file on flash with Python</title>
      <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4079446#M2006</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;That works. Flash or Bootflash depends on the device type.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 05:18:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4079446#M2006</guid>
      <dc:creator>nathy1984</dc:creator>
      <dc:date>2020-05-05T05:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Guestshell open file on flash with Python</title>
      <link>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4079709#M2007</link>
      <description>&lt;P&gt;Please dont forget to rate helpful posts and accept solutions so the post is helpful for other users.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 13:34:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/guestshell-open-file-on-flash-with-python/m-p/4079709#M2007</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-05-05T13:34:21Z</dc:date>
    </item>
  </channel>
</rss>

