Topic "Unable to get WinSCP to work with PeopleSoft 9"

Author Message
jmc
[View user's profile]

Joined: 2014-06-03
Posts: 3
Location: UK
Hello, I have an application engine program in PeopleSoft which builds a .bat file and a command file. When I double click the bat file from the explorer directory, it runs and downloads the file I need. When I run it from the application engine in PeopleSoft it doesn't work.

I can log on to WinSCP on the box that PeopleSoft is located on and run the .bat file and all works properly.
I know the bat file is working as the 'move' command is being executed.

any ideas on how I can see what is wrong? The log file has no information in it. I have added WinSCP to the %path variable on the box.

this is the .bat file

D:
cd D:\PeopleSoft\PsftERP\appserv\PSDEV1\files
move hel11242.001 ftp_test
winscp.exe /console /script=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\ftp_command.txt /log=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\error_check_rel.txt /ini=test.ini

this is the command file
option batch abort
option confirm off
open ftps://username:password@secureftp.url -certificate="xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -explicitssl
cd /HC00HT3
get -transfer=binary *.001 d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\
close
exit
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I suggest you use winscp.com instead of winscp.exe and redirect its output to a file, so that you can inspect it afterwards.

See also http://winscp.net/eng/docs/faq_scheduler
_________________
Martin Prikryl
jmc
[View user's profile]

Joined: 2014-06-03
Posts: 3
Location: UK
I've updated the bat file to winscp.com and turned on 'logging' on the console but I still can't get any log file or see why the command file is not connecting.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What do you mean by "turned on 'logging' on the console"?
If you add echo blah call to your batch file, just before calling WinSCP, is your "logging" facility able to capture it?
_________________
Martin Prikryl
jmc
[View user's profile]

Joined: 2014-06-03
Posts: 3
Location: UK
I had to change the bat file. I needed to

echo on
C:
cd C:\Program Files (x86)\WinSCP
winscp /console /script=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\ftp_command.txt /log=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\error_check_rel.txt

and this now works. The bat file runs the command file and downloads the file.
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