# Script taking more time to send report to mail

**URL:** <https://community.unix.com/t/script-taking-more-time-to-send-report-to-mail/367247>\
**Category:** Red Hat\
**Created:** [June 30, 2017, 8:23am UTC](https://community.unix.com/t/script-taking-more-time-to-send-report-to-mail/367247 "2017-06-30T08:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maddy123](https://community.unix.com/letter_avatar/maddy123/32/5_5575768a8748004e209b776fc1b2916d.png) [@Maddy123](https://community.unix.com/u/Maddy123)\
**Post date:** [June 30, 2017, 8:23am UTC](https://community.unix.com/t/script-taking-more-time-to-send-report-to-mail/367247/1 "2017-06-30T08:23:45Z")

</div>

Hi,

I schedule a script on linux server and it is taking more time say "30 minutes" to send the report via mail.

Could you please suggest a way to speed up sending report to mail?

OS version -- Red Hat Enterprise Linux Server release 6.5 (Santiago)

Regards,  
Maddy

---

<div class="post-metadata">

**Author:** ![zaxxon](https://community.unix.com/user_avatar/community.unix.com/zaxxon/32/660_2.png) [@zaxxon](https://community.unix.com/u/zaxxon)\
**Post date:** [June 30, 2017, 8:32am UTC](https://community.unix.com/t/script-taking-more-time-to-send-report-to-mail/367247/2 "2017-06-30T08:32:21Z")

</div>

This lacks a lot of information to increase the chance for a helpful statement.  
What is the script doing but sending a mail?  
What means "more"? What was "before", ie. what changed?  
If this script is just sending a mail, maybe stop bit coin mining on that box to reduce the performance bottleneck 😉

If the script is performing several steps, identify the slow ones by writing a logfile with timestamps to get a clue what takes so long.

If the script is doing SQL-Statements like in your former posts, contact a DBA and check with him/her, what is going wrong/slow. Maybe some tables/indices etc. changed or resources like CPU/RAM/Storage/Network have been reduced/slowed or someone else is using the host the script is running on, or a possible DB-server extensively.

---

<div class="post-metadata">

**Author:** ![jim\_mcnamara](https://community.unix.com/letter_avatar/jim_mcnamara/32/5_5575768a8748004e209b776fc1b2916d.png) [@jim\_mcnamara](https://community.unix.com/u/jim_mcnamara)\
**Post date:** [June 30, 2017, 8:46am UTC](https://community.unix.com/t/script-taking-more-time-to-send-report-to-mail/367247/4 "2017-06-30T08:46:08Z")

</div>

Your question needs help if you want an answer that will help you.

```nohighlight
1. Is this 'long time to process' a new thing?
2. What exactly does the script do?
  Example:
  runs sqlldr to load 100000 rows into an oracle db

```

I had to make up stuff just to ask a question.
