Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Why SshExec close the connexion ?
Why SshExec close the connexion ? [message #53074] Thu, 20 February 2020 18:32 Go to previous message
omari is currently offline  omari
Messages: 264
Registered: March 2010
Experienced Member
Hi Oblivion,

i want to automate file deployment using ssh,

	SshSession session;

	session.Connect(...);

	SshExec exec(session);
	Scp scp(session);

        exec.Execute("mkdir target/");
        scp.SaveFile("target/binary", LoadFile(localFile));
        exec.Execute("target/binary&");


but, the first use of SshExec close the session .

how can i achieve this, and keep the session open after remote command execution ?

thanks in advance.


regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HttpRequest cannot get the server [SOLVED]
Next Topic: [NOT REPRODUCIBLE] HttpRequest gzip format error
Goto Forum:
  


Current Time: Fri Mar 29 12:44:41 CET 2024

Total time taken to generate the page: 0.01352 seconds