User Tools

Site Tools


howto:change_variables_from_a_terminal_session

Differences

This shows you the differences between two versions of the page.


Previous revision
howto:change_variables_from_a_terminal_session [2012/04/17 19:20] – [Using rts2-xmlrpcclient] jtello
Line 1: Line 1:
-This is a how to change rts2 variables for the telescope or other instruments, the way you would from the rts2-mon interface, but from outside of it. 
  
-The motivation from this is to benefit from the versatility of other UNIX utilities to run scripts. 
- 
-====== Using rts2-xmlrpcclient ====== 
-You must first have a config file (default is /home/user/.rts2 
-that contains the user and password for the running xmlrpcclient interface under [xmlrpc] 
- 
- 
-  [xmlrpc] 
-   
-  authorization = "user:password" 
- 
-Then you must simply run "rts2-xmlrpcclient -s" and the variable and the value to be set. 
- 
-For example to run a specific target: 
-  rts2-xmlrpcclient -s EXEC.next 3 
-   
-Now if you want to set a specific variable each hour, day or week the man page for the command cron should be looked at. 
- 
-For running a command only once at a certain time, the "at" command is useful: 
-  echo "rts2-xmlrpcclient -s SEL.selector_enabled false" | at 2359 
-See the man page of at for other ways to specify time. Remember this is by default in local telescope time. 
howto/change_variables_from_a_terminal_session.txt · Last modified: 2012/06/11 00:00 (external edit)