Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-26-2004, 12:14 PM
tkraffty's Avatar
tkraffty tkraffty is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: san jose, ca
can crontab run scripts on another server?

Hi - Here's a possibly dumb question here from a rusty Unix girlie-man

Is it possible to set-up a crontab process on a Unix account that will trigger an external script located on a completely different account on another machine?

I've got a PHP application running on a Windows box, which includes a timed/scheduled process I'd like to keep - without having to figure out some strange Frankenstein-like PHP/ASP hibrid code - so I thought I'd just "send a signal" if possible from another Unix account I have setting around...

Cheers,

TK
Reply With Quote
  #2  
Old 07-26-2004, 12:59 PM
dpyers's Avatar
dpyers dpyers is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Yup. In cron, specify the Lynx browser to execute a script anywhere. Route output to dev/null. IIRC, you have to submit a TT to get Secure Shell access first. There's a secure shell client for windows on the Vortech tools page.
__________________
Reply With Quote
  #3  
Old 07-26-2004, 01:17 PM
tkraffty's Avatar
tkraffty tkraffty is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: san jose, ca
Just a reminder: I'm stupid Can you provide an example?

-- This is the chron command provided by this new software I'm working with (which runs the script every Sunday at midnight) --

59 23 * * 0 php /full/path/to/script.php

-- Here's what I'd LIKE it to do, but I have no idea of the correct syntax:

59 23 * * 0 php http://somepath.tosome.com/script.php

-- Would this be the correct syntax?

59 23 * * 0 php lynx -dump http://somepath.tosome.com/script.php
Reply With Quote
  #4  
Old 07-26-2004, 01:38 PM
dpyers's Avatar
dpyers dpyers is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
It would be something like this
59 23 * * 0 /usr/local/bin/lynx -dump /dev/null http://www.yourdomain.com/somepath/script.php > /dev/null

I was wrong about the Secure Shell requirement. Go into ftp manager for the domain. There's an option for editing/adding cron entries there.

EDIT: - That's ftp manager for the unix domain.
__________________

Last edited by dpyers : 07-26-2004 at 01:40 PM.
Reply With Quote
  #5  
Old 12-07-2004, 01:28 PM
ekrubonline's Avatar
ekrubonline ekrubonline is offline
Proud Trini
Vortech Inc. Customer
 
Location: Trinidad and Tobago
Hi, I'm not much of a UNIX person, but I'm trying to help a friend of mine to figure out how he can solve a similar problem. He himself wants to run an external process - this one's an ASP process. Can you really spell out what you put there in that response?

Now remember, I'm a UNIX newbie, but I really think he shouldn't try those PHP/ASP (not so) quick fixes he was talking about.
Reply With Quote
  #6  
Old 12-07-2004, 03:11 PM
dpyers's Avatar
dpyers dpyers is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
I had done a simple how-to here...
http://forum.vortechhosting.com/showthread.php?t=8183
__________________
Reply With Quote
  #7  
Old 12-07-2004, 03:17 PM
Silverbug's Avatar
Silverbug Silverbug is offline
Custom Built Solutions
Vortech Inc. Customer
 
Location: AK, New Zealand
Send a message via ICQ to Silverbug Send a message via MSN to Silverbug Send a message via Skype to Silverbug
hey i was in the same boat too, but its really easy. there is a good thread explaining it here...
http://forum.vortechhosting.com/showthread.php?t=8183

EDIT: darn too slow
__________________
Paul Foley
Sniper Systems Ltd

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Path for CGI scripts ewsonline Chit Chat Public 1 12-22-2005 07:14 PM
cgi scripts Wilburt Chit Chat Public 20 12-23-2002 10:44 PM


All times are GMT -5. The time now is 09:43 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.42269 seconds with 16 queries
[Output: 67.35 Kb. compressed to 62.58 Kb. by saving 4.77 Kb. (7.08%)]