Am Freitag, den 30.03.2007, 22:46 +0200 schrieb Alessandro Ogier:
> Erik Wenzel ha scritto:
> >> Mar 29 17:28:26 lattepiu /usr/bin/nfcapd[16728]: Can't execvp:
> >> "/home/netflow/stuff/process.sh: No such file or directory
> > This is clearly a shell error. Is "/home/netflow/stuff/process.sh" there
> > and has executable permissions? Really? Check twice.
> 
> nice lesson Erik, now is my turn.
> 
> i) no, it isn't, clearly, a shell error, if you read the whole line i
> hope you'll see only ONE double quote. Every normal sysadmin would note
> that. At the first check.
> 
> ii) let's strace runner process with DAEMON_ARGS="-w -t 300 -p 5000 -l
> /home/netflow/ -D -u nfcapd -g nfcapd -x "/home/netflow/stuff/process.sh
> %f\"" :
> 
> lattepiu:/home/oggei# strace -fp 17533 2>&1 | egrep process
> 
> [pid 17543] execve("\"/home/netflow/stuff/process.sh",
> ["\"/home/netflow/stuff/process.sh"], [/* 17 vars */]) = -1 ENOENT (No
> such file or directory)
> 
> have you got the point, now ?
> 
> For the moment, i made a shell script /usr/local/bin/nfcapd already
> configured for my needs.
> 
> I suspect some bad habit of start-stop-daemon (!), in fact is a not so
> common practice to pass via command line multi-word params for daemons.
> So maybe it still doesn't manage shell escaping very well.
> 
> Do you want help me to track down this one ?
Yes, track it down, please. You have the debugging environment already
set, up. I am still not conviced, because I see an syntax error at ii).
There is not an backslash before the double quote. For what I see
variable definition is:
DAEMON_ARGS="-w -t 300 -p 5000 -l/home/netflow/ -D -u nfcapd -g nfcapd
-x "
This is definitly not what you want. :) It might be typo in your email.
 
-- 
Erik Wenzel <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to