Can someone maybe tell me where and how i do add somewhere an cmd to pop my isp every so often say like for exsample every 5 mins i am using an program call get-mail any info will help Thanks BOB
On Wed, 12 Dec 2001, Bob B wrote:
Can someone maybe tell me where and how i do add somewhere an cmd to pop my isp every so often say like for exsample every 5 mins i am using an program call get-mail any info will help Thanks BOB Check out the fetchmail package. It has a mode to run as a daemon and check periodically.
-- Rick Green "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." -Benjamin Franklin
Well i have try fetchmail before and could never get it to run this program i have runs and all i need to know is how to set something up and where so it will kick the program ever so man nins thats what i am hoping for thanks for the reply! BOB On Thu, 13 Dec 2001, Rick Green wrote:
On Wed, 12 Dec 2001, Bob B wrote:
Can someone maybe tell me where and how i do add somewhere an cmd to pop my isp every so often say like for exsample every 5 mins i am using an program call get-mail any info will help Thanks BOB Check out the fetchmail package. It has a mode to run as a daemon and check periodically.
-- Rick Green
"They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." -Benjamin Franklin
On Thursday 13 December 2001 07.29, Bob B wrote:
Well i have try fetchmail before and could never get it to run this program i have runs and all i need to know is how to set something up and where so it will kick the program ever so man nins thats what i am hoping for thanks for the reply! BOB
Put it in cron. If you know vi run crontab -e, and put a line like */5 * * * * command_to_run Or you could use vcron (visual cron) that I haven't tried more than starting, but looks fairly easy to use. regards Anders
thanks just one other ? i looked at the crontab file and it has the user root running the daily etc ones do i still put root or the user that the file belongs to as it is in m user dir the file also on most of the lines inthat file there is an rm -f do i need this also! BOB On Thu, 13 Dec 2001, Anders Johansson wrote:
On Thursday 13 December 2001 07.29, Bob B wrote:
Well i have try fetchmail before and could never get it to run this program i have runs and all i need to know is how to set something up and where so it will kick the program ever so man nins thats what i am hoping for thanks for the reply! BOB
Put it in cron. If you know vi run crontab -e, and put a line like
*/5 * * * * command_to_run
Or you could use vcron (visual cron) that I haven't tried more than starting, but looks fairly easy to use.
regards Anders
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Thursday 13 December 2001 08.12, Bob B wrote:
thanks just one other ? i looked at the crontab file and it has the user root running the daily etc ones do i still put root or the user that the file belongs to as it is in m user dir the file also on most of the lines inthat file there is an rm -f do i need this also! BOB
No, no. /etc/crontab is the system cron control file. It performs system maintenance jobs like rotating logs, cleaning up /tmp and other such things. You would put your job in your user's personal crontab, which you edit with crontab -e. If you don't know or like vi, you can choose your own favourite editor by doing something like this export EDITOR=/opt/kde2/bin/kate replace /opt/kde2/bin/kate with your favourite editor, then start crontab -e *from the same shell*. Note that other shells already started, or if you start a new shell, will *not* get the EDITOR variable. Only the shell where you did the export. In the crontab you'd put a simple line */5 * * * * get-mail */5 means every fifth minute the other asterisks means respectively every hour, every day in the month, every month, every day in the week. And get-mail should be replaced by whatever you type to check mail now. You don't need to put a user, because this is your personal crontab. //Anders
ok so i am going to make an crontab file in my home dir and it just finds it there i guess ok will try thanks On Thu, 13 Dec 2001, Anders Johansson wrote:
On Thursday 13 December 2001 08.12, Bob B wrote:
thanks just one other ? i looked at the crontab file and it has the user root running the daily etc ones do i still put root or the user that the file belongs to as it is in m user dir the file also on most of the lines inthat file there is an rm -f do i need this also! BOB
No, no. /etc/crontab is the system cron control file. It performs system maintenance jobs like rotating logs, cleaning up /tmp and other such things. You would put your job in your user's personal crontab, which you edit with crontab -e. If you don't know or like vi, you can choose your own favourite editor by doing something like this
export EDITOR=/opt/kde2/bin/kate
replace /opt/kde2/bin/kate with your favourite editor, then start crontab -e *from the same shell*. Note that other shells already started, or if you start a new shell, will *not* get the EDITOR variable. Only the shell where you did the export.
In the crontab you'd put a simple line
*/5 * * * * get-mail
*/5 means every fifth minute the other asterisks means respectively every hour, every day in the month, every month, every day in the week. And get-mail should be replaced by whatever you type to check mail now.
You don't need to put a user, because this is your personal crontab.
//Anders
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Ok i make an file called crontab in my home dir and i added that line and it doesnt seem it sees that file or something as it didnt do anthing is there something else i did to do to get it to see this file in m home dir BOB On Thu, 13 Dec 2001, Anders Johansson wrote:
On Thursday 13 December 2001 08.12, Bob B wrote:
thanks just one other ? i looked at the crontab file and it has the user root running the daily etc ones do i still put root or the user that the file belongs to as it is in m user dir the file also on most of the lines inthat file there is an rm -f do i need this also! BOB
No, no. /etc/crontab is the system cron control file. It performs system maintenance jobs like rotating logs, cleaning up /tmp and other such things. You would put your job in your user's personal crontab, which you edit with crontab -e. If you don't know or like vi, you can choose your own favourite editor by doing something like this
export EDITOR=/opt/kde2/bin/kate
replace /opt/kde2/bin/kate with your favourite editor, then start crontab -e *from the same shell*. Note that other shells already started, or if you start a new shell, will *not* get the EDITOR variable. Only the shell where you did the export.
In the crontab you'd put a simple line
*/5 * * * * get-mail
*/5 means every fifth minute the other asterisks means respectively every hour, every day in the month, every month, every day in the week. And get-mail should be replaced by whatever you type to check mail now.
You don't need to put a user, because this is your personal crontab.
//Anders
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Thursday 13 December 2001 08.53, Bob B wrote:
Ok i make an file called crontab in my home dir and i added that line and it doesnt seem it sees that file
Well, that's because it shouldn't be in your home dir. I told you to use crontab -e to create it. If you must create it manually, su to root and put the file in /var/spool/cron/tabs and name it as your username //Anders
ok i was able to use the vi i use to use it all the time but then i didnt and i forgot how to save it but i figure that out and now i did use crontab -e and i see what you mean it needs to be done that way thanks again and it worked as soon as i did it as you mail came in thanks alot! BOB On Thu, 13 Dec 2001, Anders Johansson wrote:
On Thursday 13 December 2001 08.53, Bob B wrote:
Ok i make an file called crontab in my home dir and i added that line and it doesnt seem it sees that file
Well, that's because it shouldn't be in your home dir. I told you to use crontab -e to create it. If you must create it manually, su to root and put the file in /var/spool/cron/tabs and name it as your username
//Anders
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (3)
-
Anders Johansson
-
Bob B
-
Rick Green