All pastes #910125 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-19 19:32 UTC
rendered paste body
In file /etc/init.d/asterisk
----
program=/usr/sbin/asterisk
reload_cmd="$program -rx 'module reload'"
----


Shrimp:/etc/init.d# /etc/init.d/asterisk reload
Reloading Asterisk PBX: No such command ''module' (type 'help' for help)


Shrimp:/etc/init.d# /usr/sbin/asterisk -rx "module reload"
Shrimp:/etc/init.d#


Why doesn't it have the same behaviour?