Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2001 21:35:50 +0100
From:      Andreas Klemm <andreas@apsfilter.org>
To:        apsfilter-hackers@apsfilter.org
Cc:        freebsd-hackers@freebsd.org
Subject:   aps2file doesn't work on FreeBSD
Message-ID:  <20011216203550.GA7135@titan.klemm.gtn.com>
In-Reply-To: <XFMail.011216010107.phallobst@web.de>
References:  <XFMail.011216010107.phallobst@web.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

No matter if root or not ...

root@titan[ttyp2]{139} ~ aps2file -D -P lp /etc/passwd
/usr/local/bin/aps2file: cannot create /dev/stdout: permission denied

andreas@titan[ttyp2]{1011} ~ aps2file -D -P lp /etc/passwd
/usr/local/bin/aps2file: cannot create /dev/stdout: permission denied

Cc: to FreeBSD-hackers, any idea why this doesn't work ???

Here's the relevant piece of script.

print2file()
{
    : ${INPUT_FILE:=3D/dev/stdin} ${OUTPUT_FILE:=3D/dev/stdout}

    # start with an almost empty environment to emulate running under LPRng
    env -i CONTROL=3Ddummy SPOOL_DIR=3D${SPOOL:-/var/spool/lpd/$QUEUE} \
        APS2FILE_CONTEXT=3Ddummy "$SHELL" $DEBUG "$APSFILTER" -h"$HOSTNAME"=
 \
        -n"$USER" -f$(basename "$INPUT_FILE") $Z_OPTS \
        < "$INPUT_FILE" > "$OUTPUT_FILE"
}


	Andreas ///

--=20
Andreas Klemm
Apsfilter Homepage                       http://www.apsfilter.org
Support over mailing-lists (only!)       http://www.apsfilter.org/support
Mailing-list archive                     http://www.apsfilter.org/Lists-Arc=
hives
Songs from our band >> 64Bits <<         http://www.64bits.de
Inofficial band pages with add-on stuff  http://www.apsfilter.org/64bits.ht=
ml

--8t9RHnE3ZwKMSgU+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE8HQWmd3o+lGxvbLoRAlloAKCsYYhtABGUyUQG3xyaJZSR0+umyQCePVY+
9EAxnxaIz7cKtr2U4kC+Di4=
=XctA
-----END PGP SIGNATURE-----

--8t9RHnE3ZwKMSgU+--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011216203550.GA7135>