Runing Asterisk command from bash script -shell script

bash: #!/bin/sh asterisk -rx ‘command’ if you want to see the result of a command in a file: asterisk -rx ‘command’ > /some_dir/some_file.txt Perl: #!/usr/bin/perl system qq(asterisk -rx ‘command’)