HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/rush/examples/rush-notifier
#!/bin/bash
#
# Notification mailer for GNU rush.
#
#   /usr/bin/rush-notifier
#
# The above path is used in the example file
#
#   /usr/share/doc/rush/examples/rush.xinetd
#

read user command

#
# Full naming of sender and recipient.
#
/usr/sbin/sendmail -oi -t <<-TEXT
	From: GNUrush daemon <root@$(hostname)>
	To: Service registrar <root@localhost>
	Subject: GNU rush notification.

	The user $user has executed "$command".
TEXT

#
# Simplified naming.
#
#/usr/bin/mail -s "GNU rush notification." \
#	root@localhost \
#	<<-TEXT
#	The user $user has executed "$command".
#TEXT