Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » How to write cron job - FTP a file
Closed Thread
Old 02-04-2004, 06:38 PM   #1 (permalink)
Larry's Avatar
 

Join Date: May 2003

Posts: 1,803

Larry has disabled reputation

Default How to write cron job - FTP a file

I need to do the folling with a cron job. And I don't know anything about cron jobs

Here is situation:

Web Hosting Server (WHS1) - the cron job is on this server
Server A - has a file I need and I do have FTP access to the server
Server B - The final ending place for the file

WHS1 is running 24/7 and executes a cron job / script 2 times a day.

I need to do this:
1) get a file from Server A - FTP into server via cron script
2) Put the file on Server B - get the file and save it to B
3) execute the php file - the cron job's second task is to execute a script that resides on Server B.
4) let me know if all went okay - success or failure

ANYone know how to do this / write the code for the cron job?
any pointers
any help


THANKS
Larry is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On