Tags:
create new tag
view all tags

SID-00537: EXCEL2TOPICS in a CRON job

Status: Answered Answered TWiki version: 4.2.1 Perl version: 5.2.8
Category: ExcelImportExportPlugin Server OS: Linux Kernel version: 2.6.18-128.1.6.el5 Last update: 16 years ago

How would one run - excel2topics - in a CRON job? My objective is to have an Excel spreadsheet update a set of topics on a nightly basis.

I have the appropriate topic set up called AutoLoad. It works perfectly when the link http://myurl.com/bin/excel2topics/Main/AutoLoad is clicked from the topic itself.

The XLS file gets uploaded to the proper place (../pub/Main/==AutoLoad==) automatically, and the loading can be run manually.

I just cannot figure out how to execute - excel2topics - in a CRON job.

  • excel2topics
  • Web: Main
  • Topic: AutoLoad

Thanks. Bob Mellinger

-- BobMellinger - 2009-09-21

Discussion and Answer

Assuming no authentication is required do this:

/usr/bin/wget --output-document=/tmp/excel2topics-output.txt http://myurl.com/bin/excel2topics/Main/AutoLoad

There are options to authenticate, http://www.gnu.org/software/wget/manual/wget.html

-- PeterThoeny - 2009-09-21

  1. You might be able run the Perl file with the command perl /.../twiki/lib/TWiki/Plugins/ExcelImportExportPlugin/Import.pm, but I couldn't see how to pass the web and topic names as command line arguments. You could always hard-code them :-).
  2. You could call the URL with the Unix command wget

-- SeanCMorgan - 2009-09-21

That worked perfectly. Thanks very much.

-- BobMellinger - 2009-09-22

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title EXCEL2TOPICS in a CRON job
SupportCategory ExcelImportExportPlugin
TWiki version 4.2.1
Server OS Linux Kernel version: 2.6.18-128.1.6.el5
Web server Apache 2.2.10
Perl version 5.2.8
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2009-09-22 - BobMellinger
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.