Em Andamento

Unix cron job to alter .txt file outside of webspace

I have a small .txt file located outside of my webspace (ie... it's not located in /public_html/ on my server) - this text file contains a bunch of switches/tags/settings for my no longer supported forum software (I'm not in a position to find something new right now). It's a small 8.46 KB file. Among many other very short lines in that text file is the following line:

maintenance=0

The number is always either 0 or 1 ... 1 will disable posting abilities on my forum (called "Maintenance Mode"), 0 will enable posting abilities. For some odd reason, and on random days, a cPanel update will trigger this "Maintenance Mode" at approximately 3am. Since it is so random, I sometimes don't realize that nobody can post on my forum until 11-12am. I don't know if the cPanel update is altering this particular file or not, but I do know that changing the line in this file will fix the problem.

What I want from this project is: some sort of cron job that will run at 4am daily and scan this text file - if the "maintenance=" line shows 1, then it automatically changes it back to 0. No other new or existing lines in that text file should be disturbed. No access will be given to my server, nor will details of where that server is - all text/instructions to complete this project must be sent via freelancer private messaging system.

Habilidades: HTML, Linux, Perl, UNIX

Ver mais: alter cron job, where to find a job for freelancer, where to find a job, where to find a freelancer, where can i find the job in freelancer, where can i find a freelancer, webspace freelancer, linux project in freelancer, job on the line, job freelancer html, i m freelancer html, i can t find a job, html freelancer job, freelancer software job, freelancer server update, freelancer post a job, freelancer mode job, freelancer linux project, freelancer job post, freelancer html job, freelancer for unix, freelancer access job, find unix, find the right job, find job on line

Acerca do Empregador:
( 2 comentários ) Anycity,

ID do Projeto: #5089726

Premiar a:

idleswell

Hello, I am the premier Perl scripting expert on these freelancing sites. I can create a script for this task to run from cron. A variety of languages could be used for this command: I recommend Perl because it c Mais

$20 CAD em 3 dias
(128 Avaliações)
5.7

31 freelancers are bidding on average $20 for this job

gangabass

Hi, I'm expert in text processing with dozens of completed projects like this that's why I'm sure you'll be impressed with my work. I can provide you working Cron script in less than a hour for just $28 (Perl scrip Mais

$28 CAD in 0 dias
(155 Comentários)
6.0
jthoma

This can be accomplished with a shell script and making things work automatically has been my job almost all my life. Accept proposal, escrow the milestone and you will get the solution with explanations in an hour or Mais

$15 CAD in 0 dias
(44 Comentários)
5.3
sabdsouza

A proposal has not yet been provided

$24 CAD em 1 dia
(49 Comentários)
5.1
freelance4hire80

I can write you a Perl script to monitor and change the line back if it;s modified. Please attach the text file after the project started

$25 CAD em 1 dia
(25 Comentários)
5.1
techvolcano

Hi, I can write a perl script which you can put it in cron. The script will match the maintenance=0 part in the text file and change its value to 1. Ready to start now. Thanks.

$20 CAD in 3 dias
(51 Comentários)
5.1
tlchung

skilled php developer here, have done over 500+ php project for my clients, i can do the cron script for you, let start now.

$24 CAD in 2 dias
(41 Comentários)
4.7
d4rksun

A proposal has not yet been provided

$15 CAD em 1 dia
(2 Comentários)
4.3
tcrnicki

The better solution would be to track down what's throwing the forum into maintainance mode. Probably a cron job related to the forum or some code in the forum. Give me more information about what forum softweare is in Mais

$30 CAD em 1 dia
(6 Comentários)
4.2
sumitgarg44

I can create a shell script and schedule it in cron job. Script will check the value of maintenance and if it is 1 then it will change its value to 0.

$15 CAD in 0 dias
(19 Comentários)
4.2
brylu

Hello, I can write a script quickly to run from cron to alter the value, because it happens after cPanel updates it makes me think that there is some problem on the server and maybe site code can't connect to db s Mais

$30 CAD em 1 dia
(14 Comentários)
4.0
ggabor67

Hi dangod, I have 25 years experience in programming. (Just to prove I'm serious...) To solve your problem I have to know more about your environment. If it's a Linux, maybe no Html and Perl are necessary. Don Mais

$25 CAD in 3 dias
(1 Comentário)
3.9
rushinshah85

Hi, I am a full-time developer of Perl and CGI, and I work with most platforms (Linux, Solaris and Windows) and would like to help with your task. You can check my existing ratings on Freelancer and also see that Mais

$12 CAD em 1 dia
(9 Comentários)
3.6
riazsaifi

Hi As per your specification you need a script which will run at 4 am daily checks for the string "maintenance=1" change it to "maintenance=0". I can write this script for you and also send you the cron which needs Mais

$25 CAD em 1 dia
(3 Comentários)
2.8
fenster

Hello, This is very simple, just enter the following line in the cron job: 0 * * * * perl -p -i -e 's/^\s*maintenance=1\s*$/maintenance=0/' /path/to/config/file (this will run the command every hour) You ca Mais

$15 CAD em 1 dia
(3 Comentários)
2.8
altr

Hello! I'm a Unix/Linux Expert with more than 7 years experience. I'll provide you with script file that will do the trick. Explanations and further help will be provided as well until you get desired result. Looki Mais

$10 CAD em 1 dia
(1 Comentário)
2.0
Eudge

I can do it today .

$30 CAD em 1 dia
(128 Comentários)
1.8
swtroubleshooter

Hi, Thank you for posting your requirement. My name is Inderjeet and own a small 4 member IT services firm based at Chandigarh,India. We have been into IT since 1994 (desktop software), into Web-apps since 2001 and Mais

$30 CAD em 1 dia
(1 Comentário)
1.6
cereno

Easy job, I can do it for you within minutes. I've done many similar things before. Let me help you get this done.

$20 CAD in 0 dias
(2 Comentários)
1.5
mtuthill

Hi, UK based freelancer with 10+ years system administration experience. Seems like a fairly simple job, assuming that some basic commands are installed on the server should be able to knock a quick script up in Mais

$20 CAD em 1 dia
(2 Comentários)
0.8
jaredallen

Hi, I am an experienced Perl programmer located in the U.S. The script you require is fairly straightforward in Perl. I can complete the project easily. Also, another solution may be changing the permissions on the fil Mais

$15 CAD em 1 dia
(1 Comentário)
0.4