public override void start() { try { Request request; if (xforwading) { request = new RequestX11(); request.request(session, this); } if (pty) { request = new RequestPtyReq(); request.request(session, this); } request = new RequestExec(command); request.request(session, this); } catch (Exception e) { throw new JSchException("ChannelExec"); } thread = new Thread(this); thread.setName("Exec thread " + session.getHost()); thread.start(); }
public override void start() { try { Request request; if(xforwading) { request=new RequestX11(); request.request(session, this); } if(pty) { request=new RequestPtyReq(); request.request(session, this); } request=new RequestExec(command); request.request(session, this); } catch(Exception e) { throw new JSchException("ChannelExec"); } thread=new Thread(this); thread.setName("Exec thread "+session.getHost()); thread.start(); }
public override void start() { try { Request request; if(xforwading) { request=new RequestX11(); request.request(session, this); } request=new RequestExec(command); //((RequestExec)request).setCommand(command); request.request(session, this); } catch//(Exception e) { } thread=new Thread( new ThreadStart( this.run )); thread.Start(); }