Am Mittwoch, den 28.03.2007, 15:00 +0200 schrieb oggei: > Package: nfdump > Version: 1.5.2-6 > Severity: important > > > Hi, i needed to make some customizations on DAEMON_ARGS so i created one > on /etc/default/nfcapd . > Everything work fine except for -x (execute command on rotating) part, > and no way getting it to work making all of sort of escaping. > > example: > > DAEMON_ARGS="-w -t 300 -p 5000 -l /home/netflow/ -D -u nfcapd -g nfcapd > -x '/home/netflow/stuff/process.sh %f'" > > > Mar 28 14:58:51 lattepiu /usr/bin/nfcapd[2808]: Launcher: run command: > ''/home/netflow/stuff/process.sh' > Mar 28 14:58:51 lattepiu /usr/bin/nfcapd[3089]: Can't execvp: > '/home/netflow/stuff/process.sh: No such file or directory > > and with: > > DAEMON_ARGS="-w -t 300 -p 5000 -l /home/netflow/ -D -u nfcapd -g nfcapd > -x /home/netflow/stuff/process.sh %f" > > > Mar 28 14:59:38 lattepiu /usr/bin/nfcapd[4605]: Launcher: run command: > '/home/netflow/stuff/process.sh' > Mar 28 14:59:38 lattepiu /usr/bin/nfcapd[4772]: Launcher: Startup. > > > that's ok, but no expansion. I don't think this is a nfdump related bugs. This looks like a shell quoting problem to me. Try DAEMON_ARGS="-w -t 300 -p 5000 -l /home/netflow/ -D -u nfcapd -g nfcapd -x \"/home/netflow/stuff/process.sh %f\""
-- Erik Wenzel <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]