Fix bug #111: Added nmdc-redirector similar to the adc-redirector.
This commit is contained in:
parent
be8db21561
commit
74a2191350
20
tools/nmdc-redirector
Executable file
20
tools/nmdc-redirector
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
# Setup using inetd/xinetd or similar.
|
||||
# In /etc/inetd.conf add:
|
||||
# 1511 stream tcp nowait nobody /usr/bin/nmdc-redirector adc://target:port
|
||||
#
|
||||
# Change port to whatever you want.
|
||||
# Make sure the path and the target:port is correct, then you should be good
|
||||
# to go!
|
||||
|
||||
use strict;
|
||||
use IO::Handle;
|
||||
autoflush STDIN;
|
||||
autoflush STDOUT;
|
||||
|
||||
my $target = $ARGV[0];
|
||||
|
||||
print "<Redirector> You are being redirected to " . $target . "|";
|
||||
print "\$ForceMove " . $target . "|";
|
||||
|
Loading…
Reference in New Issue
Block a user