Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 7th, 2011, 02:16 AM
basarakin basarakin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Posts: 1 basarakin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 54 sec
Reputation Power: 0
Problems with batch file running in parallel

this problem is associated with my server (Windows Server 2003 R2 Enterprise x64 edition)

I have two scheduled tasks which runs two batch files respectively (let's called them A.bat and B.bat) on 2am and 7am everyday. The things they do are quite similar, exporting dump files in database for different schema (around 10 schema for A.bat and around 6 for B.bat) and zipping them accordingly.

Dump files for different schema are exported successfully but some of them couldn't be zipped. Usually those dump files which could not be zipped are created after 7am. I managed to do the zipping (7-zip) in parallel in cmd so parallel zipping should not be causing the problem. One strange thing that I observed is that the batch file continues to run, exporting dump file for next schema, even though it didn't zip the dump file for current schema. And usually A.bat doesn't execute the "goto endloop"

There is no sign of error in the log that I have kept.
Below is part of the batch file,

:loop
if %curr_schema%==END goto endloop
if %count% GEQ 1000 goto endloop
exp parfile=%backup_root_dir%\%curr_schema%.par
"C:\program files\7-zip\7z" a -t7z %dest%\%curr_schema%_%curdate%.7z %dest%\%curr_schema%_%curdate%.dmp >> %logfile%
goto loop
:endloop
echo done!

Reply With Quote
  #2  
Old January 29th, 2012, 09:54 AM
StormInternet StormInternet is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 17 StormInternet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 59 m 3 sec
Reputation Power: 0
Hi,

It will not show you when task was executed in scheduled task hence I would suggest you to open command prompt, navigate to the .bat file and execute here manually, it will show you exactly where its getting stuck

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > Problems with batch file running in parallel

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap