Fetchmal email notif. on your prompt (pop, imap, etrn, odmr) [fixed]
Maybe this can help you (I'm refering to the previous post)
This is my question:
=============
1- I am using fetchmail
2- fetchmail allows you to "check" but not "fetch" with the -c flag
3- I thought I'd write a script to check for email, so that I get a text message
on my terminal when I get an email (because it's IMAP)
This is the script:
This is my cronjob:
I have tested the script and it works just right.
However the cronjob is not showing anything. I thought it could be the > /dev/null or the > /dev/null 2>&1 if you want no e-mail ever.
I've tried removing these > but nothing
I was expecting to be prompted with the notification in my terminal whenever (after checking, say, once per minute, as stated in the cronjob) an email arrives but nothing...
Cronjobs do not have any terminals associated with them. You cannot interact with a cronjob. Infact, the very purpose of cronjobs is to run without any manual intervention.
So do not expect any pop-ups or prompts from your cron job. Cron does not work that way.
Cronjobs do not have any terminals associated with them. You cannot interact with a cronjob. Infact, the very purpose of cronjobs is to run without any manual intervention.
So do not expect any pop-ups or prompts from your cron job. Cron does not work that way.
That's right. Anyway you could try something like:
Obviously you need to "guess" the terminal, but you can get that info from "who"...
Hi,
1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th... (5 Replies)
Hi ,
I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility )
I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Hi
I want to execute a script on the last day of every month.
I tried using the following line but it failed:
50 23 * * * && cd live/cgi-bin/;perl org_stats_monthly_cron_job.cgi
log shows:
CMD:
Its a Solaris box.
Could someone please help me out?
Thanks in advance. (3 Replies)
Hi
everybody ....I am trying to write a cron job for event based subscription for a tool called Microstrategy...if anybody have idea about this please help me...
Thanks in advance
ark (7 Replies)
I have a cron job that ran for 3 months; all the suden, it stops working. There were no changes in the script. Is there away that I can find out why? can someone with root permission disable my cron-job? Is there away that I can look into the system to see who may have done that?
My cron job... (1 Reply)
Hi All ,
We have few scripts which uses common environment/path setting variables.
Now instead of putting classpath , framework,java_home ..... etc. in all the script, can we make a file with all common settings which can be envoked by the scripts while running. If yes , say setting file is... (3 Replies)