Topic "Invoke remote script"

Author Message
max

Guest


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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Next version will allow this. But anyway SFTP/SCP client is not the proper tool for this kind of task. Consider using plink from Putty package.
_________________
Martin Prikryl
max

Guest


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 Question . 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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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?

Quote:
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.
_________________
Martin Prikryl
max

Guest


Just in case you didnt get the mail

vsmartybrain@yahoo.com


Thanks
Max
max

Guest


Works like magic now.. Razz

Thanks
Max
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License