Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running rake from batch file

When I run rake from within a batch file (.bat) it will exit immediately after the rake script has completed and will not execute any commands after it.

e.g. for the following, it will execute rake but not change directories

rake 
cd ..

Anyone know how to stop this behaviour?

like image 305
James Hollingworth Avatar asked Jul 21 '10 15:07

James Hollingworth


People also ask

How do I run a rake file?

Go to Websites & Domains and click Ruby. After gems installation you can try to run a Rake task by clicking Run rake task. In the opened dialog, you can provide some parameters and click OK - this will be equivalent to running the rake utility with the specified parameters in the command line.

What is rake command?

Rake is a software task management and build automation tool created by Jim Weirich. It allows the user to specify tasks and describe dependencies as well as to group tasks in a namespace. It is similar in to SCons and Make.


1 Answers

you want:

call rake
like image 143
Andrew Bullock Avatar answered Sep 20 '22 22:09

Andrew Bullock