• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

Task Schedule not working in windows 2012

Hi,

I have some application installed in windows 2012 server and I am taking backup using below command.
pg_dump -h localhost -p 5432 -U adempiere adempiere 1>D:\Adempiere\Data\ExpDat.dmp

I created a .bat file and copied these commands. If I run the .bat file manually, it works fine and backup happens.

If I schedule a task to run the .bat file, the task shows completed, but there is no backup happens. I tested this in windows 2008 server, there also the same issue.

But in windows 2003 server, task scheduler works fine. What might be the issue
0
kolathaya123
Asked:
kolathaya123
1 Solution
 
Manoj BojewarCommented:
Hi,
run the schedule task using system account and let us know the status.

Thanks,
Manoj
0
 
DeadmanIT ConsultantCommented:
In Program\script mention only the name of batch file or script and box to contain just the name of the script and place the folder path in the Start in (optional) box

schedtask2.jpg
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
You should add error logging to your script, like with
pg_dump -h localhost -p 5432 -U adempiere adempiere 1>D:\Adempiere\Data\ExpDat.dmp 2>D:\Adempiere\Data\Errors.log

Open in new window

0
 
kolathaya123Author Commented:
Excellent.. Thanks alot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now