Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
targetwoman
Joined: Apr 22, 2004
# Posts: 20
|
Posted: 2004-Jul-19 06:11
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
|
Posted: 2004-Jul-21 14:10
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
|
Posted: 2004-Jul-21 23:53
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
|
Posted: 2004-Aug-05 22:22
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:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|