hi,
is there any possiblity to send email from the command prompt,
for eg
i want to send alert to any mail id
like /data/logs is 80% to my hotmail account , xxx@hotmail.com
is this really possible,,
if not, then what are the prerequistes need to do this (1 Reply)
This is probably simple so forgive me...
I just want to find all files in a folder created within the last 10 minutes...
This is easy:
# find /home/folder -cmin -10
If the find command locates any files created in the last ten minutes I want it to send an email alert.
I just want to... (3 Replies)
We have a program which create sar output files which has a weeks data...
To read file we use sar -f sa15 command which has multiple days data( a weeks data)....we need to only get last 48 hours data and email it to different users....
I guess we can use combination of sar -o or even awk.... (3 Replies)
I know how I can pipe any output to another command thats easy |.
What i'm trying to do is send several addresses to the same command over and over again.
Essentially what I want to do is do an nslookup on an address and then take the resulting IP(s) and send each of those IP's to another... (2 Replies)
Hi
i have a script which executes daily through cron. The output of the script is appended to a log file everyday
It also emails me the output of the logfile as we have the mailx command in the script
The below is my requirement :
Normally When I get the email it sends the entire content... (3 Replies)
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Hello Unix Experts!
We are on AIX 6.1 TL6
I am trying to develop a script that does the following:
It should send the output of "df -g /directory/folder" command as an email to a user(someone@company.com)
This is too simple and i can research on how to do it, but it would be great if... (2 Replies)
Hi
I have script to collect file system usage statistics from few remote unix hosts and email . On the UNIX system the column spacing is fine but the email output is not aligned properly. Any tips to fix this ? (1 Reply)
hi ,
i have written below piece of code to meet the requirement but i am stuck in the logic here.
the requirement are:
1) to send the sql out put to email body with proper formatting.
2) if count_matching = Yes then mail should triggered with the subject line ... (10 Replies)
Discussion started by: itzkashi
10 Replies
LEARN ABOUT HPUX
uupath
uupath(1) General Commands Manual uupath(1)NAME
uupath, mkuupath - access and manage the pathalias database
SYNOPSIS
pathsfile] mailaddress
pathsfile
DESCRIPTION
The commands, including and are targeted for removal from HP-UX; see the below.
provides electronic message routing by expanding a simple UUCP address into a full UUCP path (see uucp(1)). For example, could be expanded
into
expands an address by parsing mailaddress for the dominant host (see below) and looking up the host in the appropriate database (see
pathalias(1)). If the host is found in the database, the expanded address is written to the standard output. If the host is not found,
writes the original address to the standard output and returns an exit status of 1. expects mailaddress to be in UUCP format (hostor
ARPANET format (user@host).
The option opens the database based on pathsfile rather than the default database based on This database must be a database created by con-
sisting of the two files and
The dominant host is the left-most UUCP host in mailaddress. If no UUCP host is found (no is in the address), assumes that the address is
in the simple ARPANET format user@host. If the address does not match either format, writes the original address to the standard output
and returns an exit status of 1.
constructs a mail routing database by using the pathsfile data file obtained from (see pathalias(1)). as input. The recommended pathsfile
location is because this is the default database used by The database files and are created by If these files already exist, they must be
removed prior to running
The option specifies verbose mode, which writes a line to the standard output for each entry written to the database.
DIAGNOSTICS
returns an exit status of 1 and writes the original mailaddress to the standard output if the address is not found or is incorrectly for-
matted. returns an exit status of 2 and prints a diagnostic message if the database files are not accessible, or if improper parameters
are given. Otherwise, returns an exit status of 0.
If the database files and already exist prior to running the message is displayed. These files must be removed before running
WARNINGS
Use of commands, including and is discouraged because they are targeted for removal from HP-UX. Use ftp(1) or rcp(1) instead.
AUTHOR
was developed by University of California, Berkeley.
FILES SEE ALSO pathalias(1), uucp(1).
TO BE OBSOLETED uupath(1)