Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Problems in generating the mail from cron -- very urgent help me Post 302220527 by thiru_cs on Friday 1st of August 2008 03:40:21 AM
Old 08-01-2008
i scheduled in the cron as

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /##some path##/myscript.ksh >> /##some path##/myscript.log

output of the log file is...


The Job Successfully scheduled at : Thu Jul 31 07:45:00 MST 2008
61
File name 1
NOT FOUND
1 --> Mail Status for my@mail.com
1 --> Mail Status for other@mail.com
30
File name 2
NOT FOUND
1 --> Mail Status for my@mail.com
1 --> Mail Status for other@mail.com
30
File name 3
NOT FOUND
1 --> Mail Status for my@mail.com
1 --> Mail Status for other@mail.com
44
File name 4
NOT FOUND
1 --> Mail Status for my@mail.com
1 --> Mail Status for other@mail.com
47
File name 5
NOT FOUND
1 --> Mail Status for my@mail.com
1 --> Mail Status for other@mail.com
The Job Successfully ended at : Thu Jul 31 07:45:01 MST 2008

Here for the FIle name 5 the condition is true. Eventhough its comingin as NOT FOUND instead of FOUND. But works fine when executed manually.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Very urgent!! Cron problems

I'm having serious problems running cron. I want to create midnight backups of my files on my unix server and there is something wrong with cron. Here is what I do: First I saw that cron is running (while logged on as root) by typing "ps -aedf|grep cron" and I noticed that there is 1 instance... (4 Replies)
Discussion started by: pappous
4 Replies

2. UNIX for Dummies Questions & Answers

cron problems

Hi there, this time a have a other problem :) i will start a script over the cron. if i start the script manual (per command) it works without any problems, but over the cron it doesent work. my cron looks like this: 26 15 * * * /path/scriptname.sh 2> /path/error.log there is no... (3 Replies)
Discussion started by: scotty
3 Replies

3. Shell Programming and Scripting

How to Schedule job using cron(URGENT)

Hello All, I m newbie to Job scheduling. Suppose i have 2 files s1.sh and s2.sh i want to make a schedule such as run s1.sh at 2AM everyday and run s2.sh 9Pm everyday. Can anyone tell me how to schdule that using CRON and i want to know what is CRON and CRONTAB. Thanks in advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies

4. Solaris

mail problems - how to send mail on solaris

Hello I am new user on solaris... I need to configure my solaris to be able to send mails... I know mailx command mailx -s hello address@address.com but I get an error... you have mail in /var/mail/root # hello... User unknown /dead.letter... Saved message in /dead.letter what... (10 Replies)
Discussion started by: amon
10 Replies

5. Shell Programming and Scripting

Generating a report -Formatted printing -Urgent

Hi, My aim is to generate a report using shell script. There are various formats fields coloumns etc. I want to print in a single line (row) but in different coloumn as given below: field1 field2 field3 field4 ....... ....... ...... ....... The spacing... (1 Reply)
Discussion started by: jisha
1 Replies

6. UNIX for Dummies Questions & Answers

Very Urgent... Problem in generating the mail from crontab

Hi, I wrote a script which generates a mail automatically under certain condition. When i execute the script manually in unix the script is getting executed and the condition works accordingly and the mail is also generated. But when it is pu into cron the mail is not generated and the condition... (1 Reply)
Discussion started by: thiru_cs
1 Replies

7. UNIX for Dummies Questions & Answers

cron job problem(urgent)

Hey all. Im totally new with makeing websites ect The thing is, i wanted to make one of those pimp games, so i installed a script called mypimpscript.. it works but the 10mins cron jobs dont... ive tried to set it up in cpanel, but im doing it wrong :S right now it looks like this php... (1 Reply)
Discussion started by: princess
1 Replies

8. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies

9. Shell Programming and Scripting

cron: Clock generating

Hello. I would like to do this : A_VAR_FLAG = "ABCD" +------------+...................................+---------+ ...............................|.................|...................................|.............|... (7 Replies)
Discussion started by: jcdole
7 Replies

10. UNIX for Beginners Questions & Answers

Cron job scheduled is running once, but reports are generating twice

Team, Hope you all are doing fine I have one admin server which is being used dedicately to run cron jobs on hourly basis, fetching the details from Database which is in a different server.These cronjob are run on every hourly/5 minutes basis depending as per end user requirement.The script... (12 Replies)
Discussion started by: whizkidash
12 Replies
Mail::Field::AddrList(3)				User Contributed Perl Documentation				  Mail::Field::AddrList(3)

NAME
Mail::Field::AddrList - object representation of e-mail address lists INHERITANCE
Mail::Field::AddrList is a Mail::Field SYNOPSIS
use Mail::Field::AddrList; $to = Mail::Field->new('To'); $from = Mail::Field->new('From', 'poe@daimi.aau.dk (Peter Orbaek)'); $from->create('foo@bar.com' => 'Mr. Foo', poe => 'Peter'); $from->parse('foo@bar.com (Mr Foo), Peter Orbaek <poe>'); # make a RFC822 header string print $from->stringify()," "; # extract e-mail addresses and names @addresses = $from->addresses(); # strings @names = $from->names(); # strings @addr = $from->addr_list(); # Mail::Address objects (v2.00) # adjoin a new address to the list $from->set_address('foo@bar.com', 'Mr. Foo'); DESCRIPTION
Defines parsing and formatting of address field, for the following fields: "To", "From", "Cc", "Reply-To", and "Sender". All the normally used features of the address field specification of RFC2822 are implemented, but some complex (and therefore hardly ever used) constructs will not be understood. Use Mail::Message::Field::Full in MailBox if you need full RFC compliance. See documentation in the base class. METHODS
See documentation in the base class. Constructors See documentation in the base class. Mail::Field::AddrList->combine(FIELDS) See "Constructors" in Mail::Field Mail::Field::AddrList->extract(TAG, HEAD [, INDEX ]) See "Constructors" in Mail::Field Mail::Field::AddrList->new(TAG [, STRING | OPTIONS]) See "Constructors" in Mail::Field "Fake" constructors See documentation in the base class. $obj->create(OPTIONS) See ""Fake" constructors" in Mail::Field $obj->parse() See ""Fake" constructors" in Mail::Field Accessors See documentation in the base class. $obj->set(OPTIONS) See "Accessors" in Mail::Field $obj->stringify() See "Accessors" in Mail::Field $obj->tag() Mail::Field::AddrList->tag() See "Accessors" in Mail::Field Smart accessors See documentation in the base class. $obj->addr_list() Returns the collected Mail::Address objects. $obj->addresses() Returns a list if email addresses, found in the field content. $obj->names() Returns a list of nicely formatted named, for each of the addresses found in the content. $obj->set_address(EMAIL, NAME) Add/replace an EMAIL address to the field. $obj->text([STRING]) See "Smart accessors" in Mail::Field DETAILS
See documentation in the base class. DIAGNOSTICS
Error: Undefined subroutine <method> called Mail::Field objects use autoloading to compile new functionality. Apparently, the method called is not implemented for the specific class of the field object. SEE ALSO
This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/. AUTHORS
The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development. Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog. LICENSE
Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark Overmeer <perl@overmeer.net>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.18.2 2014-01-05 Mail::Field::AddrList(3)
All times are GMT -4. The time now is 07:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy