[go: up one dir, main page]

File: 10mail

package info (click to toggle)
smartmontools 7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,740 kB
  • sloc: cpp: 49,345; ansic: 9,924; sh: 6,043; makefile: 962
file content (13 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -e

# Send mail if /usr/bin/mail exists
if ! [ -x /usr/bin/mail ]; then
	echo "Your system does not have /usr/bin/mail.  Install the mailx or mailutils package" 
	exit 1
fi

input=$1
shift

/usr/bin/mail "$@" < $input