<?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: vi confusing? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555642#M28684</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;  After completing the edit job, save and come out. Then use this&lt;BR /&gt;&lt;BR /&gt;#chmod 755 script  . Now owner, group, and others will executable permission.&lt;BR /&gt;&lt;BR /&gt;#chmod 744 script   Here only owner will have execute permission.&lt;BR /&gt;&lt;BR /&gt;  U can try this alos&lt;BR /&gt;&lt;BR /&gt;#sh ./script&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
    <pubDate>Mon, 23 Jul 2001 08:51:23 GMT</pubDate>
    <dc:creator>Shahul</dc:creator>
    <dc:date>2001-07-23T08:51:23Z</dc:date>
    <item>
      <title>vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555638#M28680</link>
      <description>Hi gurus:&lt;BR /&gt;I edit a script with vi plus the option -x, how to make it excuteable?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Mon, 23 Jul 2001 08:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555638#M28680</guid>
      <dc:creator>leereg_5</dc:creator>
      <dc:date>2001-07-23T08:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555639#M28681</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just use the chmod command, for example: chmod -x [file name] will make it executable for the owner, group and others.&lt;BR /&gt;chmod 700 [file name] will make it readable, writable and executable for the owner.&lt;BR /&gt;see "man chmod"</description>
      <pubDate>Mon, 23 Jul 2001 08:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555639#M28681</guid>
      <dc:creator>Mark van Hassel</dc:creator>
      <dc:date>2001-07-23T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555640#M28682</link>
      <description>Mark is right,otherwise you can to execute your script with:&lt;BR /&gt;#sh ./script</description>
      <pubDate>Mon, 23 Jul 2001 08:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555640#M28682</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-07-23T08:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555641#M28683</link>
      <description>Hi&lt;BR /&gt;chmod 755 &amp;lt;script&amp;gt;&lt;BR /&gt;makes the script readable and executable for owner,group and others as well as writable for owner.&lt;BR /&gt;&lt;BR /&gt;Andreas</description>
      <pubDate>Mon, 23 Jul 2001 08:38:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555641#M28683</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2001-07-23T08:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555642#M28684</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  After completing the edit job, save and come out. Then use this&lt;BR /&gt;&lt;BR /&gt;#chmod 755 script  . Now owner, group, and others will executable permission.&lt;BR /&gt;&lt;BR /&gt;#chmod 744 script   Here only owner will have execute permission.&lt;BR /&gt;&lt;BR /&gt;  U can try this alos&lt;BR /&gt;&lt;BR /&gt;#sh ./script&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
      <pubDate>Mon, 23 Jul 2001 08:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555642#M28684</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2001-07-23T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555643#M28685</link>
      <description>$vi -x to.sh                           &lt;BR /&gt;Key:    &lt;BR /&gt;"to.sh" [New file] &lt;BR /&gt;$chmod +x to.sh&lt;BR /&gt;$./to.sh&lt;BR /&gt;./to.sh: syntax error at line 2 : `newline or ;' unexpected &lt;BR /&gt;while I do as follow:&lt;BR /&gt;$vi to.sh&lt;BR /&gt;$chmod +x to.sh&lt;BR /&gt;$./to.sh&lt;BR /&gt;It is OK now!&lt;BR /&gt;Why?</description>
      <pubDate>Mon, 23 Jul 2001 09:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555643#M28685</guid>
      <dc:creator>leereg_5</dc:creator>
      <dc:date>2001-07-23T09:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555644#M28686</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can make it execute but it cann't be executed correctly since it is encripted ! &lt;BR /&gt;"vi -x txt" is used to encript a text/document , not used to edit a script.</description>
      <pubDate>Mon, 23 Jul 2001 09:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555644#M28686</guid>
      <dc:creator>Frank Li</dc:creator>
      <dc:date>2001-07-23T09:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555645#M28687</link>
      <description>Sorry if this obvious to you.  ...but.&lt;BR /&gt;&lt;BR /&gt;vi doesn't change permisions on files (like to make it executable).   Like they said here, that's "chmod".  vi edits files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jul 2001 19:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555645#M28687</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2001-07-23T19:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: vi confusing?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555646#M28688</link>
      <description>&lt;BR /&gt;If you are using a vim or some other vi clone -x encrypts the file. A quick way to continue editing and to change the execute status is to do a  :w file.sh  then a :!chmod +x file.sh&lt;BR /&gt;You can execute from within the editor the same way :!./file.sh &lt;BR /&gt;Assuming that the first line of the script is #!/bin/sh etc..</description>
      <pubDate>Tue, 24 Jul 2001 19:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-confusing/m-p/2555646#M28688</guid>
      <dc:creator>Brad Reeves</dc:creator>
      <dc:date>2001-07-24T19:45:28Z</dc:date>
    </item>
  </channel>
</rss>

