Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3451014
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:06:15+00:00 2026-05-18T09:06:15+00:00

I have a perl script (which syncs delicious to wp) which: runs via the

  • 0

I have a perl script (which syncs delicious to wp) which:

  1. runs via the shell but
  2. does not run via cron (and i dont get an error)

The only thing I can think of is that it read the config file wrongly but… it is defined via the full path (i think).

I read my config file as:

my $config = Config::Simple->import_from('/home/12345/data/scripts/delicious/wpds.ini',
   \my %config);

(I am hosted on mediatemple)

Does anybody have a clue?

update 1: HERE is the complete code: http://plugins.svn.wordpress.org/wordpress-23-compatible-wordpress-delicious-daily-synchronization-script/trunk/ (but I have added the path as above to the configuration file location as difference)

update 2: crossposted on https://forums.mediatemple.net/viewtopic.php?pid=31563#p31563

update 3: the full path did the trick, solved

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:06:15+00:00Added an answer on May 18, 2026 at 9:06 am

    The difference between a cron job and a job run from the shell is ‘environment’. The primary difference is that your profile and the like are not run for a cron job, so any environment variables you have set in your normal shell environment are not set the same in the cron environment – no extensions to PATH, no environment variables identifying where Delicious and/or WP are hosted, etc.

    Suggestion: create a cron job that simply reports the environment to a known file:

    env > /home/27632/tmp/env.27632
    

    Then see what is set in your own shell environment in comparison. Chances are, that will reveal the trouble.

    Failing that, other environmental differences are that a cron job has no terminal, and has /dev/null for input and output – so interactive stuff does not work well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a perl script which when run from the command line generates a
I have a Perl script which is scripted to print Hello! on a web
I have a perl script that will perform some operations on directories, and I
I have some perl code which establishes a signal handler: $SIG{'KILL'} = sub {
I have 5 Perl files that are verification scripts for 5 different states of
My Perl script to monitor a directory on Unix, stores a list of users
Thanks to a suggestion from Chas. Owens , I have been having fun playing
this is a follow up to my recent question ( Code for identifying programming
I would like to program job limits for the LSF command bsub into my
I've got multiple access logs in the logs directory, following the naming convention below:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.