Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect “SU: from root to macuser at /dev/tty??” to /dev/null 1

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
Is there a way to get the above message off the terminal - to ,say,/dev/null ?

I have a script ran by a crontab avery minute - it fills up the terminal screen ...

Thanks

Long live king Moshiach !
 
1 * * * * /path/to/script 1>/dev/null 2>/dev/null
or
1 * * * * /path/to/script > /dev/null 2>&1

palo
 
Tried it,does not help:

SU 06/29 08:49 + tty?? root-sciroot
SU 06/29 08:50 + tty?? root-sciroot
SU 06/29 08:51 + tty?? root-sciroot

Tried:
* * * * * su - sciroot -c 'fix_umount.sh -q' 2>&1 >/dev/null
and
* * * * * su - sciroot -c 'fix_umount.sh -q' >/dev/null 2>&1

Long live king Moshiach !
 
Sorry,
message “SU: from root to macuser at /dev/tty??” is a part
of syslogd.
What does it look like file /etc/syslog.conf ?

palo
 
Sorry,it's actually :

*.err;kern.debug;auth.notice;user.none /dev/console
*.err;kern.debug;daemon,auth.notice;mail.crit;user.none /usr/adm/messages
*.alert;kern.err;daemon.err;user.none operator
*.alert;user.none root
*.emerg;user.none *
user.alert /usr/adm/messages
lpr.debug;lpr.info;lpr.warning /usr/adm/messages

Long live king Moshiach !
 
I guess it's in the first line: auth.notice messages get put on /dev/console

if you modify that line to

*.err;kern.debug;user.none /dev/console

and run

refresh -s syslogd

you'll get rid of the lines on your console. I noticed that auth.notice messages are logged to /usr/adm/messages also, so no harm in removing them from /dev/console I would assume...



HTH,

p5wizard
 
Ok.

Have changed the syslog to :

*.err;kern.debug;;user.none /dev/console

and refreshed as advised.still get:

SU 06/29 12:31 + tty?? root-sciroot
SU 06/29 12:32 + tty?? root-sciroot
SU 06/29 12:33 + tty?? root-sciroot
SU 06/29 12:34 + tty?? root-sciroot

Long live king Moshiach !
 
*.err;kern.debug;;user.none /dev/console

replace for test

*.err;kern.debug /dev/console

palo
 
Sorry,

p5wizard suggestion did the trick,I was just lookig at /var/adm/sulog that kept reporting.
Console though went clean ...Thanks

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top