On Thu, 05 Mar 2009 15:52:12 -0500
Bob Doolittle <[email protected]> wrote:

> That error message is pretty annoying. There really wasn't any useful 
> info after that line?
> 
> Perhaps somebody with a Debian environment could perform a simple 
> experiment for us. That function should work fine outside of the
> Xsetup environment:
> Try running ksh yourself, copy/pasting that function definition into 
> your shell, and do:
> logerr "Testing 1,2,3"
> 
> Then, look in your logs - do you see the message?
> Try it with both forms of function definition and let us know your
> results.
> 

form 1:

hellm...@minb144:~>ksh
$ function logerr {
> echo "Xsetup error: $1"
> logger -t Xsetup -ip user.error "error: $1"
> }
$ logerr "Testing 1,2,3"
Xsetup error: Testing 1,2,3
$ exit
hellm...@minb144>su -
r...@minb144:~>grep Xsetup /var/log/*
/var/log/syslog:Mar  5 22:08:34 minb144 Xsetup[19657]: error: Testing 1,2,3 
/var/log/user.log:Mar  5 22:08:34 minb144 Xsetup[19657]: error: Testing 1,2,3

form 2:

hellm...@minb144:~>ksh
$ logerr() {
> echo "Xsetup2 error: $1"
> logger -t Xsetup2 -ip user.error "error: $1"
> }
$ logerr "Testing 10,9,8"
Xsetup2 error: Testing 10,9,8
$ exit
hellm...@minb144>su -
r...@minb144:~>grep Xsetup2 /var/log/*
/var/log/syslog:Mar  5 22:15:30 minb144 Xsetup2[19770]: error: Testing 10,9,8
/var/log/user.log:Mar  5 22:15:30 minb144 Xsetup2[19770]: error: Testing 10,9,8


So for me both forms seem to work.

Meik

-- 
Meik Hellmund
Mathematisches Institut, Uni Leipzig
e-mail: [email protected]
http://www.math.uni-leipzig.de/~hellmund
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to