# Add custom options to bsub (vnc)

**URL:** <https://discourse.openondemand.org/t/add-custom-options-to-bsub-vnc/778>\
**Category:** Get Help\
**Tags:** question\
**Created:** [March 12, 2020, 11:05pm UTC](https://discourse.openondemand.org/t/add-custom-options-to-bsub-vnc/778 "2020-03-12T23:05:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rotaugenlaubfrosch](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rotaugenlaubfrosch/32/314_2.png) [@rotaugenlaubfrosch](https://discourse.openondemand.org/u/rotaugenlaubfrosch)\
**Post date:** [March 13, 2020, 4:31pm UTC](https://discourse.openondemand.org/t/add-custom-options-to-bsub-vnc/778/4 "2020-03-13T16:31:36Z")

</div>

Hi Jeff,  
Thank you for investigating. I confirm that it doesn’t submit with the specified options (as checked in `/var/log/ondemand-nginx/$USER/error.log`).  
I’ve also tried to replace `bc_num_slots` with a custom variable as you proposed - however I get the following error message.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/4bb958e2832e3376bb82fbb344cf218dfb44e340.png)  
Do I have to replace `bc_num_slots` in some other files too?  
So far I have just replaced them in `form.yml` and `submit.yml.erb`.

`form.yml`:

> ```
> ---
> attributes:
> desktop: "mate"
> bc_vnc_idle: 0
> bc_vnc_resolution:
> required: true
> node_type: null
> ood_var_mem:
> required: true
> label: "Memory"
> value: 1
> ood_var_slots:
> required: true
> label: "Slots"
> value: 1
> 
> form:
> - bc_vnc_idle
> - desktop
> - bc_account
> - bc_num_hours
> - ood_var_mem
> - ood_var_slots
> - node_type
> - bc_queue
> - bc_vnc_resolution
> - bc_email_on_started
> 
> ```

`submit.yml.erb`:

> ```
> ---
> batch_connect:
> template: vnc
> script:
> native:
> - "-M"
> - "<% ood_var_mem.blank? ? 1 : ood_var_mem.to_i %>"
> - "-n"
> - "<% ood_var_slots.blank? ? 1 : ood_var_slots.to_i %>"
> 
> ```

---

_[View the full topic](https://discourse.openondemand.org/t/add-custom-options-to-bsub-vnc/778)._
