IBM developerWorks
           Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Iron Speed
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old January 23rd, 2003, 09:35 PM
viz viz is offline
::::
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 64 viz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Easy Way to Call cURL from cron on Another Host?

Have got cron support on one of my hosts, but no cURL. Then on the other host I've got cURL, but no immediate access to cron. Is there an easy way to use some script or utility on the cron-enabled host (probably in a crontab file, right?) on the one host to automatically call cURL on the other at specified times?

Have got PHP and Perl access on both hosts, although I don't think the cron-enabled host allows for CGI Perl access.

Am able to figure how to do the crontab file, but am stuck on how to call cURL on other host.
__________________
Disclaimer: content may have handled during settling.
::::::::::::::
regards, viz

Last edited by viz : January 23rd, 2003 at 10:41 PM.

Reply With Quote
  #2  
Old January 23rd, 2003, 11:07 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
You don't need CGI access to run a perl script via cron. If you have perl on the cron enabled system, you can run a perl script.

It would be unusual for a host to offer PHP and not offer perl, I've never heard of this before.

You can install perl modules without root access, and it isn't difficult at all. Read the tutorial below, it's pretty much all you'll ever need to install perl modules anywhere.

http://www.perlmonks.org/index.pl?node_id=128077

Reply With Quote
  #3  
Old January 24th, 2003, 12:52 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Please do not cross post:

http://forums.devshed.com/t50345/s.html
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #4  
Old January 24th, 2003, 02:52 PM
viz viz is offline
::::
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 64 viz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Quote:
Originally posted by Hero Zzyzzx
You don't need CGI access to run a perl script via cron. If you have perl on the cron enabled system, you can run a perl script...

...You can install perl modules without root access, and it isn't difficult at all. Read the tutorial below, it's pretty much all you'll ever need to install perl modules anywhere.

http://www.perlmonks.org/index.pl?node_id=128077
Thank you for the info and link, Hero Zzyzzx -- will check it out.

Quote:
Originally posted by Hero Zzyzzx
It would be unusual for a host to offer PHP and not offer perl, I've never heard of this before.
That one's not a commercial host, and while they DO have Perl, the CGI access seems to be disabled to encourage use of PHP (am guessing that as they haven't told me and I haven't asked about it either). I actually have a third host that doesn't have Perl access at all for that very reason (and because they feel PHP causes them less security problems, if I remember the rationale right).
Quote:
Originally posted by M.Hirsch
Please do not cross post.
Well excuse me, M.Hirsch, but the UNIX forum at first seemed the most logical choice for my thread. However, after posting it there, I realized how likely it was to go unanswered forever on such a DEAD board (only three other posts in last 30 days!).

And I don't see any delete buttons available ... if you're a mod, please feel free to delete the other post.

Reply With Quote
  #5  
Old January 24th, 2003, 03:07 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
i am no mod. but "delete" is here:
click on "edit" of your first post, then check the box "delete" and press the button "delete".

as noone answered yet in "unix", you should delete that one. thank you.

Reply With Quote
  #6  
Old January 24th, 2003, 08:34 PM
viz viz is offline
::::
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 64 viz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
thank you, M.Hirsch -- in the last vBulletin forum I frequented, that function was disabled and so never 'learned' it -- nice that it works here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Easy Way to Call cURL from cron on Another Host?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway