How to pass parameters containig options from variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

I am trying to pass these arguments

	-N -p -F "not host foo"

to a binary, but

	ARGS="-N -p -F 'not host foo'"
	$DAEMON $ARGS

get's passed as 6 arguments and not 4.

Using xargs this works, but I'd like to not introduce that dependency:

	ARGS="-N -p -F 'not host foo'"
	echo $ARGS | xargs $DAEMON

Now for the complete picture, it's the init script for arpwatch. Options that
should be passed to arpwatch can be specified by the sysadm in
/etc/default/arpwatch with is sourced by the initscript and then passed (via
start-stop-daemon) to the arpwatch binary.

This is on debian stable, package version 0.5.5.1-7.4

	Stefan
-- 
Reader, suppose you were an idiot.  And suppose you were a member of
Congress.  But I repeat myself.
		-- Mark Twain
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux