![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||||||
|
||||||||||||
|
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 |
|
#2
|
||||||||||||
|
||||||||||||
|
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.
__________________
|
|
#3
|
||||||||||||
|
||||||||||||
|
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 |
|
#4
|
||||||||||||
|
||||||||||||
|
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. |
|
#5
|
||||||||||||
|
||||||||||||
|
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. |
|
#6
|
||||||||||||
|
||||||||||||
|
I had done a simple how-to here...
http://forum.vortechhosting.com/showthread.php?t=8183
__________________
|
|
#7
|
||||
|
||||
|
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 ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |