sendevent 550 Bytes
Newer Older
1
#!/usr/bin/perl -w
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2 3
#
# EMULAB-COPYRIGHT
4
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
5 6
# All rights reserved.
#
7 8 9 10 11 12 13 14
use English;

#
# Send a Testbed Control event.
#
# usage: sendevent <event>
# 

15 16
# Drag in path stuff so we can find emulab stuff.
BEGIN { require "/etc/emulab/paths.pm"; import emulabpaths; }
17 18 19 20 21

#
# We use the tmcc to figure out where the Testbed Event Daemon is running.
# Don't worry about the port for now.
#
22 23 24
use libtmcc;

unshift(@ARGV, ("-s", tmccbossname()));
25

26
exec "tevc", @ARGV;
27 28

die("Could not exec tbevc: $!");