<?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: Inputting password from command procedure in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960502#M35663</link>
    <description>Thank guys,&lt;BR /&gt;you all were very helpful, really appreciate it.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 15 Mar 2007 08:18:01 GMT</pubDate>
    <dc:creator>Mark Vitalis</dc:creator>
    <dc:date>2007-03-15T08:18:01Z</dc:date>
    <item>
      <title>Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960495#M35656</link>
      <description>Hi All,&lt;BR /&gt;I’m a beginner to the vms operating system, and having trouble with a command procedure to run an .exe file.&lt;BR /&gt;The thing is whenever a program is run on the system the user is prompted to enter a username and password before the program executes.&lt;BR /&gt;I’m having a problem inputting this data&lt;BR /&gt;(password) from the command procedure, is there a way for this to be done?.&lt;BR /&gt;&lt;BR /&gt;And also I was wondering, is they anyway to input the username and password from the keyboard and the rest of data from the command procedure?&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;Mark Vitalis&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2007 01:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960495#M35656</guid>
      <dc:creator>Mark Vitalis</dc:creator>
      <dc:date>2007-03-13T01:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960496#M35657</link>
      <description>Mark,&lt;BR /&gt;     Welcome to the OpenVMS ITRC Forum!&lt;BR /&gt;&lt;BR /&gt;For most programs you just follow the start of the program with the data such as username password. For example&lt;BR /&gt;&lt;BR /&gt;$! test.com&lt;BR /&gt;$run test&lt;BR /&gt;username&lt;BR /&gt;password&lt;BR /&gt;some data&lt;BR /&gt;more data&lt;BR /&gt;$exit&lt;BR /&gt;&lt;BR /&gt;Your question implies you are concerned about putting a username/passowrd in a script. Rightly so! It woudl be best/desirable to input the password from the originating terminal, and the data from the script or the terminal as appropriate.&lt;BR /&gt;&lt;BR /&gt;If the program was written to accomodate that, this is easy. Specifically the program should se tow different files/streams for the two typs of input. The password should be read from the logical name SYS$COMMAND, and the data from SYS$INPUT.&lt;BR /&gt;Check $HELP and USER MANUAL for details on those concepts.&lt;BR /&gt;However, if a program just reads from SYS$INPUT (the standard for C, Fortran and so on), then you are pretty much stuck. There is no way to redirect on the fly.&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2007 01:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960496#M35657</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-13T01:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960497#M35658</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Thanks alot man, greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2007 13:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960497#M35658</guid>
      <dc:creator>Mark Vitalis</dc:creator>
      <dc:date>2007-03-13T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960498#M35659</link>
      <description>Regarding your second question:&lt;BR /&gt;&lt;BR /&gt;"And also I was wondering, is they anyway to input the username and password from the keyboard and the rest of data from the command procedure?"&lt;BR /&gt;&lt;BR /&gt;You can try to put this line in your command procedure, right before you invoke the program (whose input you want to enter from the keyboard):&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$INPUT SYS$COMMAND&lt;BR /&gt;&lt;BR /&gt;For example,&lt;BR /&gt;&lt;BR /&gt;$ define/user sys$input sys$command&lt;BR /&gt;$ run myprogram !input will be from keyboard&lt;BR /&gt;$! program finished&lt;BR /&gt;$ write sys$output "Done!"&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;Good luck.</description>
      <pubDate>Tue, 13 Mar 2007 14:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960498#M35659</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-03-13T14:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960499#M35660</link>
      <description>Hi Edgar,&lt;BR /&gt;Thanks for the assistance.&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;Mark Vitalis</description>
      <pubDate>Tue, 13 Mar 2007 19:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960499#M35660</guid>
      <dc:creator>Mark Vitalis</dc:creator>
      <dc:date>2007-03-13T19:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960500#M35661</link>
      <description>&lt;!--!*#--&gt;We also use a password protected program and in some procedures it gets used multiple times. In order to avoid to have to input the password for each invocation I use the following:&lt;BR /&gt;&lt;BR /&gt;$! -----------------------------------------&lt;BR /&gt;$! Get the password once&lt;BR /&gt;$! -----------------------------------------&lt;BR /&gt;$!&lt;BR /&gt;$   SET TERM/NOECHO&lt;BR /&gt;$   INQUIRE PWD "Util password"&lt;BR /&gt;$   SET TERM/ECHO&lt;BR /&gt;$!&lt;BR /&gt;$   PIPE WRITE SYS$OUTPUT PWD | -&lt;BR /&gt; UTIL Param1 Param2 ...&lt;BR /&gt;&lt;BR /&gt;This can be extended for multiple input lines:&lt;BR /&gt;&lt;BR /&gt;$ PIPE (WRITE SYS$OUTPUT USERNAM ; -&lt;BR /&gt;        WRITE SYS$OUTPUT PWD ; -&lt;BR /&gt;        WRITE SYS$OUTPUT "Command" ; -&lt;BR /&gt;        WRITE SYS$OUTPUT "EXIT") | RUN UTIL&lt;BR /&gt;&lt;BR /&gt;Edwin</description>
      <pubDate>Wed, 14 Mar 2007 02:05:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960500#M35661</guid>
      <dc:creator>Edwin Gersbach_2</dc:creator>
      <dc:date>2007-03-14T02:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960501#M35662</link>
      <description>Or simply put the username + pwd in a file and read that instead.&lt;BR /&gt;And you can install the image with privs so that the user itself can not read the file (w:,s:rwed) but only an installed exe (all with privs).&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Mar 2007 05:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960501#M35662</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-03-14T05:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inputting password from command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960502#M35663</link>
      <description>Thank guys,&lt;BR /&gt;you all were very helpful, really appreciate it.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 15 Mar 2007 08:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/inputting-password-from-command-procedure/m-p/3960502#M35663</guid>
      <dc:creator>Mark Vitalis</dc:creator>
      <dc:date>2007-03-15T08:18:01Z</dc:date>
    </item>
  </channel>
</rss>

