Skip to content

Instantly share code, notes, and snippets.

@rakibulislam
Created August 9, 2015 21:40
Show Gist options
  • Save rakibulislam/59d8fa661fc527e1d75c to your computer and use it in GitHub Desktop.
Save rakibulislam/59d8fa661fc527e1d75c to your computer and use it in GitHub Desktop.
Run a ruby script from a tmux session using shell script
#!/bin/bash
tmux new-session -d -s my_session_r 'ruby run.rb'
tmux detach -s my_session_r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment