Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

targetwoman
Joined: Apr 22, 2004
# Posts: 20

View the profile for targetwoman Send targetwoman a private message

Posted: 2004-Jul-19 06:11
Edit Message Delete Message Reply to this message

We have a Perl script which needs to be invoked every few hours to sync the data from other servers. But the cronjob implemented through the CP doesn't work. Must be a path problem ?
How do I sort this controlpanel problem ?



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1832

View the profile for Prowler Send Prowler a private message

Posted: 2004-Jul-21 14:10
Edit Message Delete Message Reply to this message

If you have access to the shell, then it should be easy enough. It appears that you don't have access to the shell and hence you should write a small Perl script to display the path to the script.

Alternatively, you can write the script to be permanently running - it sleeps most of the time except when it has to do what it has to do.





NEntropy
Joined: Dec 08, 1999
# Posts: 1117

View the profile for NEntropy Send NEntropy a private message

Posted: 2004-Jul-21 23:53
Edit Message Delete Message Reply to this message

Having the script running all the time may not work if you don't control your own server. Most of the shared hosting companies that I'm aware of usually has a "reaper" program that will periodically go out and kill any process that's been running longer than XX minutes, because it usually means a hung process.

If the cron doesn't work through your control panel, complain to support about it... And see if you can manually edit entries in cron through, say, perl. Languages like Perl and PHP lets you run arbitrary commands as if you having shell access.



IanK
Joined: Dec 07, 2003
# Posts: 90

View the profile for IanK Send IanK a private message

Posted: 2004-Aug-05 22:22
Edit Message Delete Message Reply to this message

Sounds like you're on a CPanel server which means that, yes, it is very likely a path problem.

If you can see the cron job icon then you know the server admin has not disabled them.

Use this for the path $HOME/public_html/(then probably cgi-bin, etc..)


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions