Batch script hanging

Advertisement

JohnsonJohnPat
Joined:
Posts:
2

Batch script hanging

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: Batch script hanging

JohnsonJohnPat wrote:

Is there a log file produced?
Use /log switch (available since 3.8 only).
_________________
Martin Prikryl

Reply with quote

Guest

Re: Batch script hanging

martin 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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: Batch script hanging

Can you see anything from the log file?
_________________
Martin Prikryl

Reply with quote

hmir
Guest

Re: Batch script hanging

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:

martin 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.

Reply with quote

Advertisement

Guest

Re: Batch script hanging

martin 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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: Batch script hanging

I would like to know on which command it hangs. At least :-)
_________________
Martin Prikryl

Reply with quote

Guest

Re: Batch script hanging

martin wrote:

I would like to know on which command it hangs. At least :-)

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?

Reply with quote

Guest

Re: Batch script hanging

martin wrote:

I would like to know on which command it hangs. At least :-)

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?

Reply with quote

Advertisement

JohnsonJohnPat
Joined:
Posts:
2

Re: Batch script hanging

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Re: Batch script hanging

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

Reply with quote

Advertisement

You can post new topics in this forum