I am launching casperJS scripts from my controller as this:
output = `casperjs #{path_to_file} '#{url}#'`
And sometimes, for several reasons the casperjs script might hang, or might take a long time. I am wondering if there is anyway I can set a timeout in my controller to just kill the process and control it. Is that possible?