How To Cron On Windows Server?
I truly love the 'cron' feature on Linux servers. This way I can schedule php scripts to do repetitive tasks on my website, but I plan to develop a asp.net website.
Is this kind of scheduling scripts possible on Windows servers? Else how do I perform repetitive automatic tasks? It would be a shared hosting.
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Cron Issues On VPS Server
I have a VPS Setup which is running Cpanel, everything works fine apart from some of my clients Cron Jobs. Each user is trying to get cron to run a script to update a page. if they run the script from a browser then it works fine and the page is updated, however if they let cron run the script, it does not run and they get an error email from the server. E.g. ************************* Subject: Cron <xxx@xxx> php -f /home/xxx/public_html/1min.php From: "Cron Daemon" <xxx@xxx.xxx.co.uk> Date: Fri, January 18, 2008 12:55 am To: xxx@xxx.co.uk Priority: Normal Options: View Full Header | View Printable Version | Download this as a file No input file specified. ********************* I have check the server and everything seems to be fine, I have cron jobs running as part of WHMCS which all work fine, I just cant find the error.
View Replies!
View Related
Dedicated Server - How To Setup CRON
I'm trying to help out a friend with a dedicated server setup however we both don't know too much about it. We've setup apache, perl, sql all the standard stuff but cannot for the life of us setup a CRON job for a particular script. The dedicated server control panel is: WHM Accelerated. Our current websites have been setup on the server under the same user account (master). There doesn't seem to be the usual "CPANEL" options which you usually get with shared hosting however.
View Replies!
View Related
Determine What Cron Jobs Are Killing Server And When
We're running on Linux/Apache/MySQL/RoR and have a number of cron jobs that run throughout the day on our server. We've been noticing lately that at certain times of the day the site becomes really slow. When I'm online with my engineers I can mention this to them and they can check and see and say "Oh yeah, it's job XYZ that's spiking the server load." That's great but much of the time when I notice the sluggishness my developers are offline (we're in different time zones). I'm wondering if there's a fairly easy way to track this when they're not online so we can say "Yup, last night at 10 PM your time when you noticed that it was job ABC." There has to be something that allows you to do this right?
View Replies!
View Related
Windows 2008 Versus Windows 2003 Server
With Windows 2003 server, there are comprehensive lists of what you need to do to secure the server before use. For Windows 2008, I wonder is there such a list? Or is it true as what I heard from Microsoft that it is already secured out of the box? Anyone has any resources on the hardening or preparation of 2008 for server hosting uses?
View Replies!
View Related
Windows Xp Rather Than Windows Server 2003?
Is there hosting that use windows xp rather than windows server 2003? What is the advantage of using windows server2003 anyway? Most of the time I just need to run some programs that need huge bandwidth. If I want to host sites, I'll just use xamp. I think windows xp license is cheaper.
View Replies!
View Related
DNS Domain Name Server Manager In Windows Server 2008
I have been searching everywhere trying to find a tutorial but It is not going anywhere. Basically I need to create 2 nameservers for Godaddy and pretty much so when i type http://mysite.com it goes to my site. I can access everything from http://myip and everything works. Now is there a step by step on how to actually do it in the DNS Manager? I need help like what IP address do I use is it the router ip? The external IP?
View Replies!
View Related
Media Server Running Windows Server 2003 Std: Yes Or No
Most people probably run Linux on their media servers, but since I don't know much about Linux and the media server we have is unmanaged, I was wondering how you guys feel about running Windows Server 2003 Std on a media server instead of Linux. We'll only be using the server to host Flash video files (.flv) and we'll be serving those vids on websites hosted on other servers, resulting in approx. 50,000-100,000 media views per day (filesizes range from approx. 5MB to 10MB). We don't want to run Windows Media Services, just a Web server (IIS6) and have the Flash video players on the external websites take care of the streaming/downloading part.
View Replies!
View Related
Samba Server :: Can Linux And Windows Exist On The Same Server?
I have a linux server for a video sharring site The video encoder that I prefer to use will only work in a windows enviorment The windows server would pass off the converted video to the Linux server. Will a Samba server for Linux allow a Linux machine to connect and share files with a Windows machine work for this application. Although it's probably a dumb question but can Linux and Windows exist on the same server?
View Replies!
View Related
Create Web Server Using Windows 2003 Server
I have three machines in network. One is server with Windows 2003. And rest two are having Win XP Professional and MS Office with Publisher. I want to create website using Publisher on one machine and put to Web server created on Win 2003 server. So that other machines on the network can browse my thsi local website.
View Replies!
View Related
ODBC Connection From A CPanel Server To A Windows Server
if it's possible to use ODBC to connect to a Windows box from a Linux cPanel server. We have attempted connections from PHP (both as CGI as well as Apache module) and we get: Fatal error: Call to undefined function odbc_pconnect() in... and Fatal error: Call to undefined function odbc_connect() in... Is ODBC possible on cPanel servers?
View Replies!
View Related
Windows Media Server & Web Server
I have a company that wants to stream some live events via Windows Media Encoder/Windows Media Player. I believe the best route is to use a WMS, stream to the WMS, then the CDN would pull from there for events. Can someone help me explain a Windows Media Server versus a web server? Can you host web sites on a WMS? Is WMS just an extension to a regular Windows 2003 server?
View Replies!
View Related
Slow Server-to-server FTP'ing On Windows
I have a number of dedicated servers at different hosting companies, all with 100mbps burstable ports, using several versions of Windows (2003 or 2008, Standard or Enterprise). I've tried setting up FTP servers (the one that is part of IIS) on 4 of them, to transfer files between the servers. But, I can't get a single transfer to go faster than about 10-12Mbps. If I upload multiple files, each will go at right around 10-12Mbps (so I can get, say, ~50Mbps if transferring 5 files simultaneously). I've tried passive FTP, and I've tried tweaking the TCP settings (TcpWindowSize, GlobalTcpWindowSize, Tcp1323Opts), and the results are the same.
View Replies!
View Related
VMware Server Under Windows Server 2003
I yesterday installed VMware Server under Windows Server 2003 x64, Enterprise Edition, and have this morning noticed the message 'Service unavailable' when browsing to a website hosted on the server under IIS. I have briefly looked into the problem and found the DefaultAppPool stopped, but after restarting it, it resets back to the stopped state when I once again browse to a hosted website. Does anyone have any experience of this problem and a workaround?
View Replies!
View Related
Cron
I have root access to a server. Is it possible to create a cron that would restart my ftp and http server every so often. Like once a week or somthing. If so how would i do it?
View Replies!
View Related
Per Second Cron Jobs?
Hey everyone, my friend's dad is looking for a web host that will allow his cron jobs to run every second. Most hosts apparently dont allow cron jobs faster than 5 seconds apart. How often a host can run cron jobs isn't really advertised on their sites so I'm having a bit of trouble finding a host. I've resorted to just sending emails to sales addresses asking about it. Does anyone know how I can find a host like this?
View Replies!
View Related
Does Cron Timeout?
Simply wondering, does cron timeout? I have heard mixed reports and can't find any good info. Personally i've run a cronjob for up to 6 minutes, but as my best method was sending myself emails through php, its not exactly a highly accurate testing method. On the same note, what would happen if one cronjob is running a php script for over 10 minutes, then another cron job starts on the same script, before the first one has finished?
View Replies!
View Related
Rsync And Cron
I have a bit of a strange problem, I have an rsync command setup in the servers crontab and from the cron log it show it ran the command but the files don't copy to the backup server. If I take the rsync syntax and run it manually all the files copy across with no errors, but I can't figure out why the cronjob doesn't work properly.
View Replies!
View Related
Remote Cron
I've just noticed that many people may have a free remote cron facility without realising it. If you have any domains registered with Godaddy, you get free web space that includes a cron facility. It only runs every half hour, but you could set six jobs at 5 min intervals to get an effective 5-minute poll, which is good enough for many purposes. You could use it to check uptime on another site, for example. Has anyone tried this?
View Replies!
View Related
Cron Commands
I've been reading through tutorials for setting up cron commands via cPanel, but everything I have tried does not work. What I need to do is simple - I just want to run a php file on my server once every 15 minutes.
View Replies!
View Related
Error In Cron
Got this from the daily.cron email: /etc/cron.daily/chkrootkit.sh: /proc/18927/fd: No such file or directory really weird, when I run that command manually, it doesn't show that error.
View Replies!
View Related
Cron Daemon
Im getting daily 100 of emails from Cron Daemon Cron which having following information any body let me know what is cron daemon and how can i disable these email Code: /bin/sh: /usr/local/etc/logcheck.sh: No such file or directory
View Replies!
View Related
Cron Job
in order to backup db automatically i want to use cron job. So i set cron job at 00 AM suppose that : my infos db name : db db user : zode db pass : 123 the command i use is following PHP Code: mysqldump -u zode -p123 of -K -c -f --compatible=mysql40 --default-character-set=utf8 db > backup/db_`date +%d%m%y`.sql in good time i am looking into backup directory db is in it or not but there is nothing in it
View Replies!
View Related
Cron / WGet
My crontab uses Wget to access a PHP file. It works just fine; however, the only problem is that each time the crontab is run it creates a file in the root of my site called filename.php.10XX filename is the name of the file that Wget runs and 10xx is just the number of times the tab has been run. How can I prevent these files from being created?
View Replies!
View Related
Cron Job
I run A Centos 4.xx latest kernel server and Ive got a problem with Cron Job reporting. The Cron Jobs themselves are working fine but I keep getting this message, on the hour, every hour Quote: Originally Posted by Email from the Cron Daemon Not a directory: /etc/cron.hourly The folder etc/cron.hourly DOES EXIST! and I cannot work out what could be causing this? Does anyone hgave any ideas what could be causing it
View Replies!
View Related
CRON Job Timing Out
i have had a problem for some time now, regarding my CRON jobs. I am trying to download a large amount of data from ebay (through their API, totally legal and aboveboard) using php, but my CRONjob times out. I have tried resetting the timeout variable, but then it exceeds the maximum filesize SO, my question: is there any way to have a script run as a CRON job, and wen it is complete, call another script?
View Replies!
View Related
Reboot Cron Job
VPS isn't rebooting by itself when it goes down. Anyone has any program/script that monitors heartbeat of the server? Like when it goes down, the program will automatically reboots the system. I know there's such a script out there but I forgot what it called.
View Replies!
View Related
Cron Quit Working...
I have a dedicated CentOS 4.5 Server. However, as you can probably guess I am new to linux and managing a server... Anyway, beginning of this month my crons quit working, I still receive emails as if they are ran but I can't get the scripts to actually execute. I have not touched the crontabs or anything prior to them not working, they simply quit working... I did not notice immediatly they did not work, I am guessing that it was around the time of which I rebuilt apache to a new version of PHP. Today I tried changing them to "php path/to/script.php" and I also tried "path/to/php /path/to/script.php", neither worked. Any ideas or suggestions as to how I can fix this?
View Replies!
View Related
MRTG Cron Error
I've installed mrtg on my server and it's working fine, but I keep getting the following cronjob error every few minutes: /usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib64/libgd.so.2) I've searched the net for a resolution and found others have had this issue, but no resolution has been offered. Anyone else have this problem or know the solution?
View Replies!
View Related
Can Cron (back Ups)
I want to set up a cron job to make daily back-ups of my database, but by turning my site off first. This is how I envisage it to work: 1: rename '.htacess' (in public_html folder for the site) to .htaccess-open 2: rename '.htaccess-closed' to .htaccess // this closes the site down so no-one can write/access the db (they are basically shown a 'site down for maintenance' page - I already have the code for this) 3: mysqldump --opt (DB_NAME) -u (DB_USERNAME) -p(DB_PASSWORD) > /path/to/dbbackup-$(date +%m%d%Y).sql // this backs up the database 4: wait for 3 to finish 5: rename '.htaccess' to .htaccess-closed 6: rename '.htacess-open' to .htaccess // this opens the site back upIs this easy enough to do? Anyone got any tips/pointers?
View Replies!
View Related
Cron Job Email In DA
I've got limited knowledge in scripting so I've come to the interweb for help. Google hasn't answered any of my queries so the trusty WHT is next. I'm trying to create a script cron that will email my clients once per month with space and bandwidth useage reminders. I'd prefer not to have to set up crons in each individual account, but rather email all with tokening including |name| |bandwidth| |space| out of the allowed space & bandwidth according to the clients package.
View Replies!
View Related
How Do I Change The Cron Schedule
We have a Cron executed program which runs at certain times of the day. I need to changes these times. How do I do this? To be exact the program that is executed is called daily_charges.jsp And I have looked under etc/cron.daily and I see no call to this program FYI looking under etc/crontab I see this: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly which obviously is the default Linux included Crontab file so this file cannot be the one that runs the daily crons. how can I find where is the Cron code that daily runs the program: daily_charges.jsp
View Replies!
View Related
How To Schedual Cron Jobs
I have a number of PHP scripts that I would like to automatically run daily at midnight. I am currently running a VPS server but have no idea how to achieve this. I do have webmin on my sever but am unsure of what command I need to run.
View Replies!
View Related
Cron Jobs Not Running
I have a machine, that for some reason stopped running it's cron jobs for some reason, and I can figure out how to get them working again. My /etc/crontab file is as follows. SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly Here are the contents of a sample user cron file. MAILTO="USER" 10 4 * * * php -q -f /home/USER/public_html/tools/updtransfers.php /home/USER/public_html >/dev/null 2>&1 10 5 * * * php -q -f /home/USER/public_html/tools/updateexp.php /home/USER/public_html >/dev/null 2>&1 10 5 * * * php -q -f /home/USER/public_html/tools/invoice_cron.php /home/USER/public_html >/dev/null 2>&1 and another */5 * * * * /usr/local/bin/php -c /home/USER/php.ini /home/USER/public_html/poller.php > /dev/null 2>&1 I've checked my logs, and I can find no errors anywhere. When I run the commands manually via SSH, they work perfectly, they simply are not being run automatically the way they are supposed to be. I have checked, and the crond service is running. I have tried restarting it, but it seams to have no affect. I really have no idea what the issue is. The only thing I seam to have found at one point, was the possibility that the files within the /etc/cron.d directory might be CHMOD'ed wrong, but I haven't found anything to confirm this either way. [root@server cron.d]# ls -all total 60 drwxr-xr-x 2 root root 4096 Dec 17 03:07 . drwx--x--x 94 root root 12288 Jan 3 09:28 .. -rw-r--r-- 1 root root 61 Jun 22 2007 csf_update -rw-r--r-- 1 root root 81 Apr 11 2007 lsm -rw-r--r-- 1 root root 79 Jun 22 2007 prm -rw------- 1 root root 366 Feb 23 2007 sa-update -rw-r--r-- 1 root root 82 Jun 22 2007 spri -rw-r--r-- 1 root root 188 Nov 16 23:14 sysstat [root@server cron.d]#
View Replies!
View Related
How Can I Backup CPanel With Cron
I just went through a week of nightmares, because my host lost hard drives and stuff.. lost my data, etc.. what ever.. I want to work out how I can cron cPanel backups. I did a search online for a cPanel backup manager, but I didn't have much luck. Or, maybe there's some other way to get regular backups? I don't really need to backup my whole sites. I keep my files locally, but of course I don't have the databases locally -- or the email records. All I "really" need is the database SQL files, so that I can rebuild my forums if need be, and also the email setup files -- because I have over 50 domains and I have emails set up on all of them. I want to have them emailed to myself. There's an option in cPanel too, which allows me to "generate/download a full backup".. well, how do I "restore" the backup? ie: I know how to backup and restore the home directory, databases and email stuff (there's 3 options in cPanel), but there doesn't seem to be anywhere to restore the full backup. Anyway, can anyone give me advice on how to keep backups of my cPanel accounts? I don't trust hosts anymore. They say they back stuff up, but they never to.
View Replies!
View Related
Cron Demon Error
I have got this email after a bit of tweaking of my server with this message for the last 6 hours at 2 hour intervals. /etc/cron.hourly/modsecparse.pl: install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.14: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i686-linux/XSLoader.pm line 70. at /usr/lib/perl5/site_perl/5.8.8/i686-linux/DBD/mysql.pm line 14 Compilation failed in require at (eval 4) line 3. Perhaps a required shared library or dll isn't installed where expected at /etc/cron.hourly/modsecparse.pl line 19
View Replies!
View Related
|