How to get global variable value via ssh from outside ROS?
In ROS -
> :put $shastatus;
100
>
From outside -
# ssh -i key user@router ':put $shastatus;'
#
return is empty
How to get global variable value via ssh from outside ROS?
In ROS -
> :put $shastatus;
100
>
From outside -
# ssh -i key user@router ':put $shastatus;'
#
return is empty
you need to define variable
ssh -i key user@router ‘:global shastatus; :put $shastatus;’
No.
It does not help.
Return is empty.
ROS 5.20 x86
he forgot curly braces:
ssh -i key user@router '{:global shastatus; :put $shastatus;}'that will place both commands in same script, other way these are considered as two separate commands (or scripts) and thus, yields no result.
Variable is linked to user ![]()