Invoke remote script

Advertisement

max
Guest

Invoke remote script

Hi,

I have a script (etudata1) residing on my mainframe system. I want to ssh to the mainframe and invoke this script. Is there a way to achieve this using the command line

Following are the commands that I am using
winscp> open 172.27.192.81
User name: nussdet1
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "nussdet1".
'nussdet1@172.27.192.81' session password:
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] nussdet1@172.27.192.81
winscp> cd /web/webdept/nusss/dev
/web/webdept/nusss/dev
winscp> ./etudata1 TSSET03 LIST NVASHOME
Unknown command './etudata1'.

Thanks
Max

Reply with quote

Advertisement

max
Guest

Reply

Hi,

I have already tried plink . Doesnt work ...
I am trying to call plink / putty from a dll. Both dont get invoked at all , when I call them using ShellExecute .

Here's the code that Im using
---------------------------------------------------------------------------------
wsprintf( param, "-ssh -load \"%s\" -l \"%s\" -pw \"%s\" -m \"%s-ssh.txt\"" , appbase , sshusr, sshpass, appbase );
wsprintf(log , "Parameter -> %s \n" , param );
PK_log ( log );


ShellExecute( NULL , "open", "putty.exe", param, "" , SW_HIDE);
---------------------------------------------------------------------------------


My dll calls cmd.exe but doesnt call putty.exe or plink .exe :?: . I had hence rested hopes on winscp. Do you know of any other tools which do this ?

And most important ...When are you planning the next version release ?

Thanks
Max

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Reply

max wrote:

I have already tried plink . Doesnt work ...
I am trying to call plink / putty from a dll. Both dont get invoked at all , when I call them using ShellExecute .
Hmm, that's strange. And with WinSCP it works?

And most important ...When are you planning the next version release ?
Send me an mail and I'll send you link to new version straight away.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum