0

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?

1 Answer 1

1

From this link:

"In these cases, you'll want to use rubyw.exe. It is the same as ruby.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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. It seems to work, a little odd though - can't find it in the process list

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.