2 # wait for amd to start up and then execute program
3 # usage: wait4amd <hostname> [<command> [args ...]]
4 # If only hostname is supplied, command defaults to rsh $hostname
6 # Package: am-utils-6.x
7 # Author: Erez Zadok <ezk@cs.columbia.edu>
11 if [ "X$1" = "X" ]; then
12 echo "Usage: wait4amd <hostname> [<command> [args ...]]"
21 exec_prefix
=@exec_prefix@
22 PATH
=@sbindir@
:@bindir@
:${PATH}
27 amq
-h $hostname > /dev
/null
2>&1
31 echo "Amd not up. Sleeping..."
34 echo "Amd is active on host $hostname!"
38 cmd
="rlogin $hostname"