xinetd launching storescp; can't run perl script on eostudy

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
semi-newbie
Posts: 6
Joined: Sun, 2009-08-30, 04:05

xinetd launching storescp; can't run perl script on eostudy

#1 Post by semi-newbie »

Hello there,

I have the following xinetd.d script:

serivce storescp
{
socket_type = stream
protocol = tcp
port = 10000
type = UNLISTED
wait = no
user = root
server = /usr/bin/storescp
server_args = -id -ac +xs +cl 9 -pdu 131072 -aet MyAETitle -ss migrated_on -fe .dcm -od /srv/storage -tos 30 10000
}

This configuration works just fine. When I attempt to add to the server args (e.g. after -tos 30 and before 10000)
-xcs "perl /etc/xinetd.d/my_perl_script #p #a #c"

my_perl_script does not seem to get invoked. I have also tried variations with single quotation marks, no quotation marks, using /usr/bin/perl instead of perl, not specifying perl at all (the script has #!/usr/bin/perl at the top, but I've also tried without that), et cetera, but nothing I do gets the script to run. (I've also tried -tos 5.)

When looking for a solution to my problem on this forum, I found this thread:

viewtopic.php?p=3236&highlight=xinetd#3236

but I don't understand the brief explanation given there.

Can anyone out there shed some light on this problem?

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1462
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

If I understand the post in the thread you are referring to correctly, xinetd has problems with the "grouping" of command line arguments using quotation marks. The author suggests that you put the complete call to storescp (including all of the server_args) into a short shell script that executes storescp using exec and just put the shell script with no server_args into the xinetd configuration script.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests