script not competing

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jun 2009
Posts: 13
Reputation: fayola is an unknown quantity at this point 
Solved Threads: 0
fayola's Avatar
fayola fayola is offline Offline
Newbie Poster

script not competing

 
-1
  #1
Sep 8th, 2009
I have a helper script that will grab weblogs for a particular domain, if called by itself from the MS-DOS command line it works as intended, but I'd like to call another script to call this script multiple times for the multiple domains, but it's only running the first call to the script and exiting out.

Is there a way to include helper batch files and have them all run sequentially?


Shell Scripting Syntax (Toggle Plain Text)
  1. g:
  2. cd g:\mydir
  3.  
  4. rem collecting log files
  5. getlogs.bat site1
  6. getlogs.bat site2
  7. getlogs.bat site3
  8. getlogs.bat site4
  9. getlogs.bat site5
  10. getlogs.bat site6

--
fayola
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,448
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 628
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: script not competing

 
0
  #2
Sep 8th, 2009
Change it to this:
  1. call getlogs.bat site1
  2. call getlogs.bat site2

Without the call it will exit after the first call
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 13
Reputation: fayola is an unknown quantity at this point 
Solved Threads: 0
fayola's Avatar
fayola fayola is offline Offline
Newbie Poster

Re: script not competing

 
0
  #3
Sep 8th, 2009
Thanks that did the trick!
Considered resolved!!!!
--
fayola
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 381 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Shell Scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC