I would like to make a BASH shell script email me regarding its status (ie. it has errored while processing a file, it has finished etc.).
- This script will be distributed to users using Macs and a variety of Linux flavors. Is there a standard mail utility that most OS's should have? I have seen reference to mail and mailx. However I had to install them on my PC running Ubuntu 10.04. Installing isn't that big of a deal, but I would like to use a function that is compatible with the most systems.
- Are there any system configurations I must perform in order to use mail or mailx? The reason I ask is that I executed the following command:
at 1)My PC running Ubuntu 10.04 - I didn't receive any emails, and 2) My Macbook Pro running OSX 10.6 - I only received emails when using my university's network (ie it didn't work at home).
- Finally, will mail or mailx be able to receive email? I would like to be able to email my script back, have it parse the email, and perform specific actions depending on my response. Is that possible?
On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
hi ,
i am using details are HP-UX B.11.11 U 9000/800 .
My scenerio as follows, i am using mailx and send mail command to send a mail . it's working fine for my client email id say abc@xyz.com. but i cannot send mail to any othere domains. i think that someone already cofigured xyz... (0 Replies)
Hello unix experts,
Here I have couple of questions regarding MMDF mail system on SCO unix:
1. How can I configure SCO OpenServer 5.0.7 mail system MMDF to
send emails using "mail" command to other machines in the same LAN?
2. How can I configure SCO OpenServer 5.0.7 mail system MMDF to ... (1 Reply)
Hi,
I wish to send a mail via ksh using this command:
cat mailfile | mail -s "My Project." gio123bg@hel.com
Is it necessary to configure some file? If yes, in which way? May you explain me all steps necessary to implement the above command?
Many thanks in advance for your kind... (0 Replies)
Hi,
I don't know if this is appropriate for this forum but here goes anyway. I'm setting up a red hat server and want to be able to send and receive e-mail from it, perhaps even regardless of user accounts. Trouble is I know nothing. I'm welcome to pointers, links, books, tips, tricks, full... (7 Replies)
Hi my freinds ,
I have RH7.2 I want to send E-mails from the prompt terminal where should I configure POP3 or SMTP also I want to access My hotmail .....I can't access it from MSN site
when I write mail command in the prompt I can't send the mail hoow to send it to the root for example also... (7 Replies)
script(1) User Commands script(1)NAME
script - make record of a terminal session
SYNOPSIS
script [-a] [filename]
DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the
record is saved in the file typescript. See WARNINGS.
The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends
when the forked shell exits or when Control-d is typed.
OPTIONS
The following option is supported:
-a Appends the session record to filename, rather than overwriting it.
NOTES
script places everything that appears on the screen in filename, including prompts.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a
privileged user, that is, root. Be sure that typescript is not a link before running script.
SunOS 5.11 30 Jan 2004 script(1)