Im trying to create a FTP Cron Job


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Im trying to create a FTP Cron Job
# 1  
Old 12-15-2008
Im trying to create a FTP Cron Job

Hello,

Im fairly new to this and am hoping for your help in moving forward.

1. I need to carry out a FTP transfer from SERVER1 to SERVER2 at 3am every morning.

2. The FTP is to work on SERVER1

3. There will be many files to transfer (96 files per day)

4. I want to delete the files that have been transfered

I have done a search on this site and seen a lot of good information but nothing has been clear for me.

Would appreciate any help.

Thanks,

Nozer
# 2  
Old 12-15-2008
What is not clear? Everything?

Best you check these:

https://www.unix.com/answers-frequent...transfers.html

https://www.unix.com/answers-frequent...n-crontab.html

If something of these is not clear, tell what it is please.
# 3  
Old 12-15-2008
Quote:
Originally Posted by zaxxon
What is not clear? Everything?

Best you check these:

https://www.unix.com/answers-frequent...transfers.html

https://www.unix.com/answers-frequent...n-crontab.html

If something of these is not clear, tell what it is please.
Hi there, Its not you guys that arent clear! Im sure if you speak the various unix languages then it is probably very clear however I am a newbie into UNIX world and that is why its not clear.
# 4  
Old 12-15-2008
Basically in those posts/FAQ is all you need. If you pick the stuff and try step by step you will also learn a lot of it. There are plenty of people that can just smash a script here and a line for your crontab but it is always nice to see what the people tried so far and that they try.

So maybe pick an example and tell what is not clear. People will be happy explaining for sure.

All you need is a cronjob triggering that ftp script. Check the web also for "here script". Or again check for ftp script posts or "automating ftp" in this forum and change it to your needs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Create cron job without root

Hi there, I need to create a crone job to backup certain files on my disk without root permissions. Also if I will be able to edit cronetab then I need to know how to edit it with any editor other than vim :mad: (5 Replies)
Discussion started by: aelhosiny
5 Replies

2. UNIX for Dummies Questions & Answers

Need help to create cron job

Dear Experts, I want to create cronjob with the following steps: 1. go to directory /home/logs/ $cd /home/logs/ 2. copy to /tmp/ the most recent file with "prefix" local_data_ and sufix ".gz" ls -ltr drwxr-xr- 4096 Nov 24 2009 bak drwxr-xr-x 24096 Aug... (6 Replies)
Discussion started by: maxsub
6 Replies

3. Shell Programming and Scripting

How to create a cron job to take an uploaded filename and move it?

OK, So complete newbie here. I would normally do this in PHP or through my FTP program script but I can't in this case (the files are not coming from me, coming from a third party FTP upload). I have an FTP server (Linux) accepting files coming in from a standard FTP program. Each file... (2 Replies)
Discussion started by: bull_frog
2 Replies

4. Shell Programming and Scripting

Re : How to create this cron job?

Hello All, Hope this finds you well. I am creating this shell script that will create cron jobs in crontab file. What I am provided with is the start time , intervals and # of trials. Based of Start time ( say 7:15 am ) and interval being 15 minutes, # of trial being 5 , I should create cron... (5 Replies)
Discussion started by: samshaw
5 Replies

5. Shell Programming and Scripting

create a chmod cron job help please

hi all, I'm so embarrasingly new; apologies. So here's my dilemma; files are being uploaded to the server via a php script... this is therefore assigning ownership to 'nobody' rather than the account 'user'. It's screwing with the permissions and then the owner can't ftp download images... (2 Replies)
Discussion started by: sirj
2 Replies

6. HP-UX

How to create a cron job and run in quality system

Hi Experts, I'm a SAP Basis, I have a small doubt would request you please help on this... 1. I wold like to copy files from one system to another system? as per my knowledge "we have to mount the prod filesystem on the quality box and do a copy every day thru crontab script, or do it via... (2 Replies)
Discussion started by: mahantysk
2 Replies

7. UNIX for Advanced & Expert Users

Cron FTP job

We have a script that we run manually, we want to set it up so that it will run automatically via cron, the problem is during the ftp process nothing is put, the script logs in changes directory fine, but nothing is put to the directory. I have tried it as root, a power user, etc. I have made the... (4 Replies)
Discussion started by: marvin51796
4 Replies

8. UNIX for Dummies Questions & Answers

cron ftp job help

I am new to cron and am trying to set a cron job that will run everyday at 2 to go out to a server (via ftp with user name and password) and get a file and then bring it back to my sever. Below is what I have but it doesn't seem to be working. Any help would be appreciated. cron command - will... (4 Replies)
Discussion started by: bernfuss
4 Replies

9. Shell Programming and Scripting

How to create cron job automatically?

How do I write a perl script to get the cron jobs? I could do a perl -e ' system "crontab -l > jobs.txt " '; Is there a better way? Then I can use perl to make changes to jobs.txt. How can I submit the changes. I suppose I could use system "crontab jobs.txt", is there a better way? ... (0 Replies)
Discussion started by: siegfried
0 Replies

10. UNIX for Dummies Questions & Answers

ftp in cron job

I am writing a script that will be placed in a crontab, which basically retrieves a file that is overwritten everyday (with current customer data) and then sent to another company. I was wondering what the best way to ensure that ftp was successful and notification of a success or failure message.... (3 Replies)
Discussion started by: walterja
3 Replies
Login or Register to Ask a Question