Bookmark Topic Watch Topic
  • New Topic

Writing batch files!

 
Jaffery Rab
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys!
I have got an assignment to write one batch file that could run several java classes and pl/sql stored procedure at specific time during the day say at 2:00 PM.
I have never written any batch file before and I have no clue hw to start........anybody out there who could help me out how to get it done or any internet link........
I will apprciate if you guys help me out
Cheers,
Jaffery
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
batch files (in both windows and *nix) simply take each line of the file and send it to the command line.

So to run java programs, you'd just need to send an appropriate command to java.

eg:

java MyClass

I've never done command-line plsql, so can't help you there.

As for scheduling, once your batch file is completed, Windows has a Task Scheduler, and Unix has a crontab.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
And since this is a cross-post, I'll close it.

cross-post
 
    Bookmark Topic Watch Topic
  • New Topic