I am using javamail to read the mailbox. Now i need to poll to the mailbox and check for any new mails received, sent, drafts saved etc. What is the good way to do that something like how push mail does? For now i am taking imap and gmail but would…
I am trying to write a periodic cron task for celery which should execute every hour from Tuesday 12pm to Wednesday 12 pm. That is a 24 hour period but spans two different days. Is it possible to schedule this as a single task like…
I want to run the following command for cron job
python test.py -sau 0 -bg 200000 -t mcs3245 > g2g.log
I have setup a cron job like below
5 0 * * * /local/mnt/workspace/username/scripts/python test.py -sau 0 -bg 200000 -t mcs3245 > g2g.log
am…
I want to create a product feed in opencart. But I have problem, where I can't understand how can I periodically once in 3 hours update that feed.
Is there any examples or tutorials how to create automatic processes?
Because the solution what I…
I know this might be extremely vague, but not sure why this would be the case, and hope someone might be able to shed some light on this for me.
I have a custom script that access Gmail Contacts (authorized), and it syncs the contacts with Gmail,…
I have two php files. In one php file there is simple html form in which I created some drop down for select time and days for cronjob when user set time and day and submit form then all the drop down values stored in database.
Now with the help of…
Hi i have tried to run the php file in the plesk by using cronjob by the following commands.But everything is showing the errors. Not executing the php script.
i.e.,
php -q /path to the file
shows php command not found.so i have tried to find the…
I'm about to undertake a large project, where I'll need scheduled tasks (cron jobs) to run a script that will loop through my entire database of entities and make calls to multiple API's such as Facebook, Twitter & Foursquare every 10 minutes. I…
I am developing java application and in this i wanted to run some method periodically. I have used java schedule to run that method periodically. This is my Cron Expression.
public static String CRON_TIME = "2 0/10 0-9.30,11.30-23 * * ?"; /* This…
So far I have tried:
php -q /var/www/vhosts/mediaservises.me/site1/ems/admin/cron/cron.php
php -f /var/www/vhosts/mediaservises.me/site1/ems/admin/cron/cron.php
site1/ems/admin/cron/cron.php
But none of them are working on plesk
What is wrong in my…
I have written a cron job in my Server as below
35 * * * * /home/sites/domain.com/public_html/admin/filename.php
I am trying to call a file in http://domain.com/admin/filename.php.
In Cron job i navigated to every folder by the way its stored in…
I'm trying to create a sample cron job.
First I've edited crontab using:
crontab -e
Then I've added this line in order to create a test folder in my home every minute:
1 * * * * mkdir -p /home//foo/
Then I've made sure that cron was…
I have created a Shell Script as below
Sample.sh
echo "Hi there"
I also added cron job in cron tab which is under /etc/crontab as below
* * * * * /home/Sample.sh > /home/Sample.txt
I have created the Sample.txt file in /home/ directory.
I have…
I am implementing cron job schedular to send periodic email with attachment in a web application.
Problem Description :
For creating a file (that will be attached with mail) in java code, I need session object to get absolute path of file.
For…
I've never written a cron job cmd before in my life, and I want to make sure its right before I run it on my site so nothing messes up.
There is a json feed that my script autopost.php grabs and adds to my database. Usually I just point my browser…