10 More Discussions You Might Find Interesting
1. IP Networking
Hi, I have a question about mailx in Red Hat:
If I use 'mail email@example.com -- -f firstname.lastname@example.org', the return mail address will be email@example.com.
How can I make all mails sent from this system use firstname.lastname@example.org as return address by default?
Thank you in advance!
nz (1 Reply)
Discussion started by: aixlover
2. Shell Programming and Scripting
This bellow code works. I'm just trying to find a simplified way to achieve this. I'm sure there is an easier way and it must be to simple for me to find.
Verify that the OS version is 6.1. If not exit the script. Of course if i just put a && exit 1 at the end of the ssh... (11 Replies)
Discussion started by: maverick72
3. Shell Programming and Scripting
How to do I get the return code of a subroutine in a perl module if invoke the subroutine as standalone,
I have an module say TestExit.pm and in that i have a subroutine say myTest() which is returns 12, if i were to call the subroutine from
command line like
CASE:1 ( Without an explict... (2 Replies)
Discussion started by: ennstate
4. Shell Programming and Scripting
I amlearning UNIX scripting. I have a small query. I would be thankful if any one helps me out.
I have a below piece of code which delets the files. If file dosent have the permissions to delete a particular file I have used 2>>operator to track the error code.
But my objective is... (1 Reply)
Discussion started by: manas6
5. Shell Programming and Scripting
How do I evaluate the result of a command assigned to a variable??
rc will be the result of the assignment rather than cmd since it executes after. How do I evaluate the result of the command itself?
Cheers..:confused: (2 Replies)
Discussion started by: browndr
6. Shell Programming and Scripting
How to find out whether the command I executed is successful or unsuccessful(at commandlinet)
say i execute the following command at command line
How do i find out whether my previous command is a success or failure.
Ram. (1 Reply)
Discussion started by: ramky79
7. Shell Programming and Scripting
I'm trying to use the Mailx Return Email Command with a file attachment.
If I use the file attachment by itself, it works ok. But If I add the return email command, it won't attach the file to email.
Send_email_address, Body, attachment,... (1 Reply)
Discussion started by: lisa0703
8. UNIX for Advanced & Expert Users
I have a script which loads data files into Oracle and then moves each file into a 'processed' directory when each file has finished loading.
Last night I found that the script was failing on the mv statement (with a return code 2) and the following message,
mv: cannot access... (1 Reply)
Discussion started by: handak9
9. Shell Programming and Scripting
has anyone got any suggestions how i would pick up the string as part of a substitution inclusive of the carriage return.
i want to pick up <<NAME>> from the PS output but the <<; seems to be on the line before the NAME.
Any ideas are appreciated!
... (3 Replies)
Discussion started by: Shakey21
10. UNIX for Advanced & Expert Users
I have a KornShell script that has successfully been scheduled through Cron. We are in the process of changing over from Cron to using CA-Unicenter. To negative test the script I put a bad return code in. At the bottom of the script an e-mail is sent using mailx and then the return code is set... (1 Reply)
Discussion started by: Connie
REPORTER-MAILX(1) LIBREPORT MANUAL REPORTER-MAILX(1)
reporter-mailx - Sends contents of a problem directory via email.
reporter-mailx [-v] -d DIR [-c CONFFILE]
The tool reads a problem directory, composes an email message from the directory contents, and uses mailx to send the message to specified
Properties of email messages can be specified in a configuration file, and via environment variables.
Configuration file contains entries in a format "Option = Value".
The options are:
The subject of the email message.
The sender of the email message.
The recipient of the email message.
Use yes/true/on/1 to attach all binary files from the problem directory to the email. This can cause the emails to be very large.
Integration with ABRT events
reporter-mailx can be used as a reporter, to allow users report problems via email when they decide to do it. This usage is pre-configured
It can also be used to notify administrator automatically when a problem happens. When this is desired, modify the event configuration file
to run the tool on the post-create event:
Path to problem directory.
Path to configuration file. When used in ABRT event system, the file contains site-wide configuration. Users can change the values via
Environment variables take precedence over values provided in the configuration file.
Subject of the email message.
Sender of the email message.
Recipient of the email message. If nor the environment variable nor the corresponding option is defined, the message is send to
Use yes/true/on/1 to attach all binary files from the problem directory to the email.
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORTER-MAILX(1)