open TV script
This commit is contained in:
@@ -184,6 +184,15 @@ class HomeController < ApplicationController
|
||||
render :json => {:status=> "Success", :url => root_path }.to_json
|
||||
end
|
||||
|
||||
def run_teamviewer
|
||||
if File.directory?("/opt/teamviewer")
|
||||
output = IO.popen('/opt/teamviewer/tv_bin/script/teamviewer')
|
||||
render :json => {:status=> true}
|
||||
else
|
||||
render :json => {:status=> false}
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Never trust parameters from the scary internet, only allow the white list through.
|
||||
|
||||
Reference in New Issue
Block a user