LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-21-2004, 08:58 AM   #1
saurya_s
Member
 
Registered: Nov 2003
Location: Oxford
Distribution: Mandrake
Posts: 158

Rep: Reputation: 30
bash script for database searching using crontab


Hi all
I usally do database search for references everyweek at PubMed
http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed
Now, can I automate this:

#1 Can I make this to do every monday using certain defined keywords.
#And if it could mail me the results for each week.

Any geek to help me out with this? I guess it is not so difficult or am I asking too much.
SS
 
Old 01-21-2004, 11:23 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Hi,

You don't have to go to that trouble.

Have a look at pubcrawler.

John
 
Old 01-21-2004, 11:27 AM   #3
saurya_s
Member
 
Registered: Nov 2003
Location: Oxford
Distribution: Mandrake
Posts: 158

Original Poster
Rep: Reputation: 30
FOUND THAT

Yep,
I found that and another one called Biomail http://biomail.sourceforge.net/biomail/
Ok, my final aim is to forward a weeks search result to a group of people.
So I guess I can getaway by subscribing to their web service.
I need mail automation here. What I want- as soon as I get that email, can I make it to automatically forward to the given group of people. I can probably have a file containig their email IDs. Something like piping the result to mail app and asking it read the email IDs from the file. or perhaps there must be some better way of doing this.
SS
 
Old 01-22-2004, 04:57 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Ok. Do you know any perl?

The pubcrawler standalone is a perl script, you could download and read through it for a few pointers.

Otherwise, some mailers have mail filtering options - e.g. automatic redirect. I'm not on my linux box at the moment, so I can't check, but I think mozillas mail program can do that.

John
 
Old 01-22-2004, 09:03 AM   #5
saurya_s
Member
 
Registered: Nov 2003
Location: Oxford
Distribution: Mandrake
Posts: 158

Original Poster
Rep: Reputation: 30
Hi there
Actually, it is more on UNIX which I know just enough for work.My machine is not running always. So, I would like to do from the server so that everybody gets the mail irrespective of my machine's status.The job will be done even if I am not there.
Any suggestions.
SS
 
Old 01-22-2004, 09:53 AM   #6
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
No, sorry, not for how to do that anyway.

But I'll bet you could subscribe to Pubcrawler with a group e-mail address which the script would then use to mail the results every week/day/whatever to everyone in that group. You'd just have to talk to whoever runs your mailserver to have the address set up.

I'm not trying to push this resource on you - just trying to find a solution to the problem with what I do know

John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
my database export shell script run from command line but not form crontab saifee Linux - General 11 01-29-2012 10:24 AM
Using crontab in a bash script nro Linux - Newbie 3 08-26-2005 09:04 PM
bash searching directries and find the files bekirsagir Programming 1 08-19-2005 05:37 AM
searching "TIC TAC TOE" bash script LV-chronos Linux - Newbie 5 05-29-2005 03:20 PM
Searching hard traffic bash programming forum satimis General 5 10-24-2004 01:25 PM


All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration