Topic "Batch script hanging"

Author Message
JohnsonJohnPat
[View user's profile]

Joined: 2006-01-19
Posts: 2
I am calling winscp3 in a batch script with the /command parameter

The script is often hanging. I added the "option batch on" and "option confirm on"

The script ran successfully from the comand line. But when scheduled. hangs about 1 of 6 times. Is there a log file produced?

Thanks.
_________________
John Johnson
hp Consulting and Integration
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
JohnsonJohnPat wrote:
Is there a log file produced?

Use /log switch (available since 3.8 only).
_________________
Martin Prikryl
Guest




prikryl wrote:
JohnsonJohnPat wrote:
Is there a log file produced?

Use /log switch (available since 3.8 only).


Is there anything else I can do to force winscp to exit?

Are there common reasons that it would hang?

The batch script ran friday 12 straight times then it hung. I will get the new version into production as soon as possible.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Can you see anything from the log file?
_________________
Martin Prikryl
hmir

Guest


Hi, We are also having the same problem. We have version 3.7.6 installed on Windows 2000 box. We have scheduled the script to run every 15 minutes. Some times, it hangs, 1-2 times in a two day period. I don't mind the hang as long as there is a way to kill it from within a script after certain wait interval. (Does any one know how ?) Right now the hung process causes the CPU usage to be 100% which is a very big problem.
Is new 3.8 beta version going to address this ! Thanks.

Anonymous wrote:
prikryl wrote:
JohnsonJohnPat wrote:
Is there a log file produced?

Use /log switch (available since 3.8 only).


Is there anything else I can do to force winscp to exit?

Are there common reasons that it would hang?

The batch script ran friday 12 straight times then it hung. I will get the new version into production as soon as possible.
Guest




prikryl wrote:
Can you see anything from the log file?


It is a production system and I have to do change control. Hope to have this soon and will produce log file. Below is the commmand I am using
"c:\program files\winscp3\winscp3.com" user@server /command "option batch on" "option confirm off " "cd /prod/home/store/app/landing" "put D:\data\takeoff\FF-Exported230120066.csv" "close" "exit"

The script executes two sequention commands similar to the above to two different servers.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
I would like to know on which command it hangs. At least Smile
_________________
Martin Prikryl
Guest




prikryl wrote:
I would like to know on which command it hangs. At least Smile


We have been unable to get the beta version installed due to company policy.

Is there anything else we could look at changing to make this exit gracefully. It is hanging using 100% of one CPU. Works some of the time.

Could it be having problems with zero byte files?
is there something other than "close" "exit" we should do?
IS there an other method to produce log results in the current release version?
Guest




prikryl wrote:
I would like to know on which command it hangs. At least Smile


We have been unable to get the beta version installed due to company policy.

Is there anything else we could look at changing to make this exit gracefully. It is hanging using 100% of one CPU. Works some of the time.

Could it be having problems with zero byte files?
is there something other than "close" "exit" we should do?
IS there an other method to produce log results in the current release version?
JohnsonJohnPat
[View user's profile]

Joined: 2006-01-19
Posts: 2
We started leaving a console session open logged on with the service account that runs the batch job. It has not hung since we started doing this. Is there something that winscp that is not available running as a batch/service?

We have "Access to console" enabled for the service.
_________________
John Johnson
hp Consulting and Integration
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
JohnsonJohnPat wrote:
We started leaving a console session open logged on with the service account that runs the batch job. It has not hung since we started doing this. Is there something that winscp that is not available running as a batch/service?

I'm not aware of that.
_________________
Martin Prikryl
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