943,708 Members | Top Members by Rank

Ad:
Sep 8th, 2009
-1

script not competing

Expand Post »
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

Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
fayola is offline Offline
13 posts
since Jun 2009
Sep 8th, 2009
0

Re: script not competing

Change it to this:
dos Syntax (Toggle Plain Text)
  1. call getlogs.bat site1
  2. call getlogs.bat site2

Without the call it will exit after the first call
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Sep 8th, 2009
0

Re: script not competing

Thanks that did the trick!
Considered resolved!!!!
Reputation Points: 11
Solved Threads: 0
Newbie Poster
fayola is offline Offline
13 posts
since Jun 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Shell Scripting Forum Timeline: how to implement cd
Next Thread in Shell Scripting Forum Timeline: book in shell script(india)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC