<?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: C++ getting info via SSH2 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115288#M751741</link>
    <description>Thank you Jim.  I have not noticed the scp2.  Is this for secure copy?  Are there any examples you can point me out to?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;--Cecilia.</description>
    <pubDate>Mon, 10 Nov 2003 15:59:33 GMT</pubDate>
    <dc:creator>Cecilia Sanchez</dc:creator>
    <dc:date>2003-11-10T15:59:33Z</dc:date>
    <item>
      <title>C++ getting info via SSH2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115284#M751737</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a C++ program making  a connection to a unix server via SSH2 as follows:&lt;BR /&gt;&lt;BR /&gt;system('ssh2 host -l uname -W Password.txt &amp;amp;)&lt;BR /&gt;&lt;BR /&gt;A dos command window is launched and then I am stuck.  I can go to the dos command window and do whatever.  I need however to keep using the C++ program in order to get information (like get a file, chandge directories, or run a script).  Do you know how can I achieve this?  Are there any examples I can refer to out there?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Mon, 10 Nov 2003 14:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115284#M751737</guid>
      <dc:creator>Cecilia Sanchez</dc:creator>
      <dc:date>2003-11-10T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: C++ getting info via SSH2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115285#M751738</link>
      <description>Does your ssh client allow you to pass the name of a command/script on the command line?  Like so;&lt;BR /&gt;&lt;BR /&gt;system('ssh2 host -l uname -W Password.txt myscript.sh &amp;amp;)&lt;BR /&gt;&lt;BR /&gt;This would allow you to login and run what you need to and return the result to your calling program on stdout.</description>
      <pubDate>Mon, 10 Nov 2003 15:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115285#M751738</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-11-10T15:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: C++ getting info via SSH2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115286#M751739</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;Yes it did!  And I thought it would not take a script as a command, because I passed before the 'llogin' command and it would not take it:&lt;BR /&gt;&lt;BR /&gt;system('ssh2 host -l uname -W Password.txt llogin&amp;amp;)&lt;BR /&gt;&lt;BR /&gt;But, it did take a simple script I created:&lt;BR /&gt;&lt;BR /&gt;system('ssh2 host -l uname -W Password.txt simple.csh &amp;amp;)&lt;BR /&gt;&lt;BR /&gt;The script merely echoes a welcome message and displays a date.  So, in the DOS command window I get back the welcome message and the date, but the connection does not remain open; that is, the prompt is at my local Widnows path, which I do not know if it is a problem or not.&lt;BR /&gt;&lt;BR /&gt;What I need to do on the Unix is to read some files, manipulate them on Windows through the C++ program, and then put the modified files back.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;--Cecilia.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Nov 2003 15:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115286#M751739</guid>
      <dc:creator>Cecilia Sanchez</dc:creator>
      <dc:date>2003-11-10T15:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: C++ getting info via SSH2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115287#M751740</link>
      <description>My recommendation then would be that you use scp(2?) instead of ssh2 to copy the remote files to your local system.  Then you could manipulate them as you wished, and replace the remote originals with your modified copies.</description>
      <pubDate>Mon, 10 Nov 2003 15:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115287#M751740</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-11-10T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: C++ getting info via SSH2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115288#M751741</link>
      <description>Thank you Jim.  I have not noticed the scp2.  Is this for secure copy?  Are there any examples you can point me out to?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;--Cecilia.</description>
      <pubDate>Mon, 10 Nov 2003 15:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115288#M751741</guid>
      <dc:creator>Cecilia Sanchez</dc:creator>
      <dc:date>2003-11-10T15:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: C++ getting info via SSH2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115289#M751742</link>
      <description>Yes. SCP = secure copy.&lt;BR /&gt;&lt;BR /&gt;You may want to take a look at this website for usage details.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.openssh.org/manual.html" target="_blank"&gt;http://www.openssh.org/manual.html&lt;/A&gt;</description>
      <pubDate>Mon, 10 Nov 2003 16:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-getting-info-via-ssh2/m-p/3115289#M751742</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-11-10T16:27:33Z</dc:date>
    </item>
  </channel>
</rss>

