Search Results

Search: Posts Made By: eludlow
Forum: Red Hat 03-14-2014
1,207
Posted By eludlow
:D many thanks!
:D many thanks!
Forum: Red Hat 03-14-2014
1,207
Posted By eludlow
Thanks. Will it create te www-user group too, or...
Thanks. Will it create te www-user group too, or is that something to do manually?

I'd try but I'm away from the server now.
Forum: Red Hat 03-14-2014
1,207
Posted By eludlow
User to install software
Hi there.

I'm setting up my first "proper" server using RHEL - in the past I've only had various test servers etc running, so want to make sure I'm doing things properly.

When installing s/w,...
1,636
Posted By eludlow
SSHing from a shell script
I want to connect to a remote server which I have a mySQL DB on, and do a mysqldump so I have a backup. I will likely schedule this with CRON to run every night.

However, to make any changes to...
5,007
Posted By eludlow
Working now, many thanks! E
Working now, many thanks!

E
5,007
Posted By eludlow
When run from the command prompt, it says it...
When run from the command prompt, it says it can't open the file that I'm trying to move in the script.

BUT if i CD to /home/users/ElburdNDL/www/cgi-bin and THEN run the script, it's fine.

The...
5,007
Posted By eludlow
Thanks. I've tried both: 12 12 * * *...
Thanks.

I've tried both:

12 12 * * * perl /home/users/ElburdNDL/www/cgi-bin/script.pl

and

12 12 * * * /home/users/ElburdNDL/www/cgi-bin/script.pl
(the latter having the...
5,007
Posted By eludlow
Perl
In the same sense as above, would a perl execution look like

12 12 * * * perl /path/to/script.pl

Or would the #!/usr/bin/perl line of the script suffice?

THanks,
Ed
5,007
Posted By eludlow
Many thanks - that did it! Ed
Many thanks - that did it!

Ed
5,007
Posted By eludlow
Calling a PHP script from cron
This is a line from my crontab:

12 12 * * * /home/users/ElburdNDL/www/backups/adddate.php

The permissions of the script is 755 it should execute ok....but it doesn't.

Do I somehow have to...
9
2,925
Posted By eludlow
RIght. When typing echo $shell it returns ...
RIght. When typing echo $shell it returns

/bin/tcsh

The way I get to the window where I enter the cron commands, is by typing "crontab -e" at the first window I come to when I enter my...
9
2,925
Posted By eludlow
It's now returning backup{`date...
It's now returning

backup{`date +%d%m%Y`}.sql

as the filename!!!!!

I'm a newbie to Unix, so I hope I'm write in saying the declaration of the variable should go on the first line of the file...
9
2,925
Posted By eludlow
OK. Still having problems :) So the first...
OK. Still having problems :)

So the first line of my crontab is:

TODAY=$(date +%d%m%Y)

and the filenamr part of the cron command is:

backup$TODAY.sql

So what is wrong?

That returns...
9
2,925
Posted By eludlow
THanks for the reply. I've made the today...
THanks for the reply. I've made the today variable in the way you say, but when it makes the backup file, it simply returns the file name as "backup_forum-date + %d-%m-%Y.sql"!!

What's going...
9
2,925
Posted By eludlow
Cron
Could someone advise of the code to get a filename to have the date of creation in it?

I've the code to dump an SQL DB to a file, but would like it to have the date it.

Also, what is the code...
7,571
Posted By eludlow
Thanks for the reply! I'm a total newbie to...
Thanks for the reply!

I'm a total newbie to Unix, so is there a script available on the web I could download, and adapt a little?

Can CRON run any form of script? I could for example code...
7,571
Posted By eludlow
CRON Job - saving to a different server?
Thanks for the all the help last evening on CRON jobs. It's now working.

Is it possible with cron to save a backup of a file to a different server or location? The idea being that if one host...
3,862
Posted By eludlow
Thanks for the reply. Like I said, I'm a total...
Thanks for the reply. Like I said, I'm a total newbie, and when I type in EDITOR=vi it gives me an error "command not found".

What am I doing wrong?

Thanks,
Ed
3,862
Posted By eludlow
CRON Jobs
Hi,

I am a total newbie to all things Unix. I've worked out I need to set up something that will allow me to automatically backup a DB for me, the DB is for a foum system I run.

Now, I've only...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 06:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy