Operating System - HP-UX
1833054 Members
2290 Online
110049 Solutions
New Discussion

Re: sshell command for IPWorks

 
ManojKumar
Advisor

sshell command for IPWorks

HI all,

I am using IPWorks ssh component to execute a command on a particular device .

For this command i have to send a file which 'll work as a input to the command .

I tried stdin property of sshell- but it is not working .
Is it possible to send a file along with a command in IPWorks(sshell) - if possible then plz let me know how to do the same .

regards,
manoj
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: sshell command for IPWorks

Shalom ManojKumar,

Please post following:

1) command line you used.
2) any error codes you recieved.
3) output of echo $? (right after a failed sshell command).
4) Version of secure shell(swlist -l product | grep -i secure)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ManojKumar
Advisor

Re: sshell command for IPWorks

Hi,

Following are the details--

1) I am using ssh component of IPWorks- first i m initialising the m_SshClient attributes and after that i m calling sendsshcommand() method to send the command .

2) error code is not coming- because response is coming- ssh component is just appending the command with the name of file what i m sending through stdin property .

3)i m using V6 version of sshell .

4) response is like - \r\n\r\n\r\n

regards,
manoj
Arunvijai_4
Honored Contributor

Re: sshell command for IPWorks

Hi Manoj,

IP*Works! S/Shell has a good tech support, you can find answers there,

Outstanding Technical Support

Backed by an expert team of support professionals. Unlimited free Email support or paid Premium Support options.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"