helen has asked for the wisdom of the Perl Monks concerning the following question:

Hello who can help a newbie "me" with a perl file?...I must launch on a unix system with ubuntu a perl file with a few commands,that why i neade to sort out some limit taht wine haves.The problem is that i realy dont know how to do taht so i was woundering if somebody can help me.I will explain what i neade to do.First of all i will explai why i neade a perl file and nota simple sh file,because the command must be execute allways,and now i will begin to explain you what.I have a program that runs under wine annd taht create a file called information.html.That file is created and upgradete in a folder called OFFICE. What the per file must do?Every (time) as example every 20 minutes must connect on my ftp web server (so with ip hot user and password) delate the old file called information.html the must go in OFFICE folder on my ubuntu take the new upgraded file information.html and uploading that file to the server ftp as I have described before so taht who will go to visit my web site and giving to all visitors the informations upgraded. That' s all.I hope somebody can help me and taht have understand this post just because English is not my mother Language but "i trust on you " Thank's Danke Grazie Take care Helen
  • Comment on hello who can help a newbie "me" with a perl file?...

Replies are listed 'Best First'.
Re: hello who can help a newbie "me" with a perl file?...
by talexb (Chancellor) on Nov 16, 2013 at 16:00 UTC

    We can help you with the Perl part, but the rest I think you're going to have to figure out yourself.

    To run a task every 20 minutes you'll probably want to use cron; and you can use Perl's Net::Ftp module to connect to your ftp server, delete and upload files.

    If this is coursework, perhaps there are notes or a text book that you can consult.

    Good luck!

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Re: hello who can help a newbie "me" with a perl file?...
by Don Coyote (Hermit) on Nov 16, 2013 at 16:14 UTC

    Hello helen, welcome to the monastery.

    Please take a look at Markup in the Monastery as this will help you to present your problem more clearly.

    What do you need help with, as there are a lot of problems contained in your post?

    In the first case to execute any file (sh, perl or others) at set intervals the cron utility is available on unix like systems. The cron man pages are fairly abstract. Try typing man (5) crontab into the terminal emulator to begin with. You need to edit the crontabs so that the file is executed at the times and frequencies, you want, with the shell or program you require. You will need to know about environment variables such as $PATH