asterisk(8) -rx %22core restart now%22
All-purpose telephony server
-r     Instead  of  running  a new Asterisk process, attempt to connect to a running Asterisk process and
       provide a console interface for controlling it.
-x command
       Connect to a running Asterisk process and execute a command on a command line, passing any  output
       through to standard out and then terminating when the command execution completes. Implies -r when
       -R is not explicitly supplied.
source manpages: asterisk