Somehow the single command doesn’t work for me even if I use the ’ and " characters. Or maybe there’s some setting that is suppressing the output?
root@vmlinux-ma:~# zammad run rails r “Setting.get(‘system_bcc’)”
root@vmlinux-ma:~# zammad run rails r ‘Setting.get(“system_bcc”)’
root@vmlinux-ma:~# zammad run rails r ‘Setting.get(‘system_bcc’)’
Please specify a valid ruby command or the path of a script to run.
Run ‘bin/rails runner -h’ for help.
undefined local variable or method `system_bcc’ for main:Object
Did you mean? system
root@vmlinux-ma:~# zammad run rails c
Loading production environment (Rails 5.2.4.2)
irb(main):001:0> Setting.get(‘system_bcc’)
=> “backup@mydomain.com”
irb(main):002:0> exit
root@vmlinux-ma:~#