BleepingComputer.com: Chron Job Upload Questions

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chron Job Upload Questions

#1 User is offline   harvlake 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 59
  • Joined: 12-July 05

Posted 06 December 2011 - 12:21 AM

Hi, maybe you can help. I would like to generate a file and store it on an FTP server. Then, maybe, use a chron job to get the file and make an entry into my PHP/MySQL database.

Do you have any suggestions about how I would go about doing this? Such as testing for the available file, deleting the file once it is uploaded.
Thanks
Harv

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 06 December 2011 - 09:39 AM

Create a php script that checks for the file, use a sys call to scp or ftp the file, update the database, and then delete the file. If that is stating the obvious, then I am not sure exactly what it is you are asking.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   harvlake 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 59
  • Joined: 12-July 05

Posted 06 December 2011 - 01:36 PM

Thanks for the help, just needed someone to point me in the right direction. :thumbup2:
Harv

#4 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 06 December 2011 - 05:09 PM

You should be able to find enough sample scripts to do each part that you can cobble them together to make a single script.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users