LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2003, 01:30 PM   #1
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Rep: Reputation: 15
Scheduled task in linux?


I wonder does linux have a scheduled task manager i want to cut a file and paste it into somewhere in periodic times.How can i do this is this possible?
 
Old 12-29-2003, 01:46 PM   #2
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
man crond
 
Old 12-29-2003, 01:49 PM   #3
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
There is a system utility called the cron that checks for jobs whenever you specify it to and performs your tasks that you give it. The way I use the cron is by setting up a side directory somewhere called cron or something like that. After that I make a file called cronjobs with an editor such as vi. The syntax looks like the following:
Minute, Hour, Day of Month, Month, Day of week (* means every possible time of that field)

a cron file could look like this (This would do a job every day at 1:30 PM)

30 13 * * * /home/myname/cron/myscript

then do # crontab cronjobs and the script myscript will be executed every day at 1:30 PM.

I hope I didnt confuse you more, there is plenty of documentation if I did Hope this helps!
 
Old 12-30-2003, 09:10 AM   #4
Dakkar
Member
 
Registered: Dec 2003
Location: Turkey
Distribution: Suse
Posts: 89

Original Poster
Rep: Reputation: 15
is it possible to send a file by ftp with crontab
if it is how can i do it?
 
Old 12-30-2003, 09:54 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Yea of course, its just a matter of using a non-interactive ftp client
Try lftp, it can be used both interactive or non-interactively, and it probably comes with your distro, you'd invoke something like this:
Code:
lftp -e 'put myfile && exit' -u myusername,mypasswd ftp.myftpserver.com
also when you want to schedule something to execute only once then try "at", its very simple to use(but you need atd running), check out the man page.

Last edited by Demonbane; 12-30-2003 at 09:56 AM.
 
  


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
linux command for the task neerajchaudhari Linux - Newbie 9 09-12-2005 02:01 AM
is there anyway to make linux turn on at a scheduled time? jontyrhodes Linux - General 2 06-04-2004 02:04 PM
Linux Task Manager Shotz Linux - Newbie 6 02-25-2004 03:37 PM
Task Manager in Linux? FutureEX Linux - General 2 10-18-2003 04:11 PM
Which Linux distro for this task? Sunner Linux - General 2 04-11-2002 08:26 AM


All times are GMT -5. The time now is 01:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration