Reputation: 28342
I'm trying to run a script every minute with "SINC is not CRON". I've used the following crontab line
* * * * * ruby -X D:/xampp/htdocs/maker ./do.rb
and now every minute I get a new cmd window. How can I force Ruby or SINC to invoke these as background processes?
Upvotes: 0
Views: 633
Reputation: 169264
From this link:
"In these cases, you'll want to use
rubyw.exe
. It is the same asruby.exe
except that it does not provide standard in, standard out, or standard error, and does not launch a DOS shell when run."
I'm not familiar with SINC, but something like this should work:
* * * * * rubyw -X D:/xampp/htdocs/maker ./do.rb
or
* * * * * rubyw.exe -X D:/xampp/htdocs/maker ./do.rb
FWIW this is similar to Python where you would use pythonw.exe
.
Upvotes: 1