- rvm list
- find what looks like your gems set, e.g
- ruby-1.9.3-p194
- echo $rvm_path/bin, e.g.
- /usr/lib/rvm/bin
- tack on the output of #1 to the output of #2, e.g.
- /usr/lib/rvm/bin/ruby-1.9.3-p194
- your cron entry should be the result of #3 followed by your ruby script, e.g.
- 0 0 * * * /usr/lib/rvm/bin/ruby-1.9.3-p194 /optt/mydir/myscript.rb
Tuesday, 15 October 2013
Use rvm in cron
Subscribe to:
Post Comments (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
kubectl --cert=/tmp/tls.crt --key=/tmp/tls.key create secret tls tls-wc-ingress
-
apt-get install exim4 dpkg-reconfigure exim4-config Select: internet site; mail is sent and received directly using SMTP IP-addresses...
-
NOTE: unbound is now available via epel repo on Amazon Linux install requirements yum groupinstall "Development Tools" yum i...
No comments:
Post a Comment
Note: only a member of this blog may post a comment.