Interesting,
Seems to be trying to run the command as one thing. so a file named 'ccc
lots of spaces with your IP address'. How are you starting this and are
you quoting it?
Exec takes an argument which is the filename to run and then extra args for
the program started.
-----Original Message-----
From: Voytek Eymont
Sent: Monday, May 09, 2011 11:41 AM
To: slug@slug.org.au
Subject: Re: [SLUG] script permissions, etc
On Mon, May 9, 2011 10:52 am, Peter Chubb wrote:
"Voytek" == Voytek Eymont <li...@sbt.net.au> 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
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html