On Mon, May 9, 2011 10:52 am, Peter Chubb wrote:
>>>>>> "Voytek" == Voytek Eymont <[email protected]> writes:

> TMP="/var/tmp/`basename $0`$$"
> mkdir -p "$TMP" cd "$TMP" trap 'cd /var/tmp; rm -rf "$TMP"' 0
>
> to create a place where you can work, that'll get cleaned up afterwards.
>


Peter, Ken, Chris, many thanks

this works good from terminal!

I'm trying to run this from 'ostiaryd'

what uid/gid to use, I'm '500'


# Format is:
# ACTION="secret","command (with path)",["uid"[,"gid"]]
# If uid,gid not set, will use defaults.
# Some samples.
# Note: uid & gid only allowed when ostiary runs as root
#ACTION="Trillions","/tmp/ostiary/uidtest","520","101"
ACTION="ccc","/usr/local/bin/ccc","500","500"

tried 500/500 but get:
May  9 11:21:48 waltoncr ostiaryd: Exec failed for command
'/usr/local/bin/ccc 192.168.1.65': Exec format error




-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to