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?
|
man crond
|
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! |
is it possible to send a file by ftp with crontab
if it is how can i do it? |
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 |
All times are GMT -5. The time now is 02:51 AM. |