Red Hat / Fedora :: Can't See Php Script In Ps And Cron Job

Dec 15, 2010

i have couple of question first when i m running my php script file named myindex.php and while its running in browser i add this code in putty to see if it shows my php script is running or not but i see nothing ps aux |grep myindex.php | grep -v grep

why i cant se if myindex.php is running or not with above command.

second how can i add a cron job to my php script, i know only through kloxo or cpanel.

View 2 Replies


ADVERTISEMENT

Fedora :: No Output From Cron Jobs In /etc/cron.daily

Jan 29, 2011

I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).

The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.

The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.

I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)

View 3 Replies View Related

Ubuntu Servers :: Cron Sending Email From Address / Change The Default Domain Name For Cron?

Apr 29, 2011

Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com

this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.

View 1 Replies View Related

Ubuntu Installation :: Cron's /etc/cron.daily/apt Not Upgrading?

Feb 25, 2010

It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:

Code:

ps -A | grep apt

showed it for a long time,

Code:

sudo tcpdump tcp

showed communication with canonical sites,

but:

Code:

top

did not show any apt using CPU

[code].....

View 2 Replies View Related

Ubuntu :: Do Cron Updates Erase Cron Entries

Sep 19, 2010

I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.

View 2 Replies View Related

CentOS 5 :: Setup A Cron In /var/spool/cron/root

Feb 16, 2010

I have set up a cron in /var/spool/cron/root

*/15 * * * * /usr/bin/phplist.sh

I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.

If I run /usr/bin/phplist.sh right in the shell it works great.

View 3 Replies View Related

Software :: Vixie-Cron Not Running /etc/cron.d/

Feb 9, 2011

Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.

Code:

View 2 Replies View Related

Fedora :: Configuring Cron Job

Apr 21, 2010

I create a shell file with different commands . I am able to execute it manually . Now I want to schedule this file hourly . For this where I place this file and where I configure for time .

View 6 Replies View Related

Fedora :: Can't Get A Cron Job To Work On 11 Box

Oct 6, 2010

I can't seem to get a cron job to work on my Fedora 11 box. When I check the logs, cron is actually working. In my /etc/crontab I have an entry to run the cron job on my Moodle installation:

30 * * * * wget -q -O /dev/null http://moodle.name.name/moodle/admin/cron.php

when I run crontab -l it is not showing me anything, I am confused

View 1 Replies View Related

Red Hat / Fedora :: CRON To Shutdown The PC Every 10 Min?

Feb 11, 2010

I'm playing with CRON to perform an automated shutdown. While I'm testing I want CRON to shutdown the PC every 10 min. Here is the crontab.

# crontab -l
0,10,20,30,40,50 * * * * root /sbin/shutdown -h now

I see the command being run in the CRON log, but the PC doesn't shutdown.

Feb 11 11:06:17 localhost crontab[4808]: (root) LIST (root)
Feb 11 11:07:31 localhost crontab[4813]: (root) BEGIN EDIT (root)
Feb 11 11:07:58 localhost crontab[4813]: (root) END EDIT (root)
Feb 11 11:10:01 localhost CROND[4821]: (root) CMD (root /sbin/shutdown -h now)

How would I debug this to figure why my shutdown command is being ignored?

View 4 Replies View Related

Red Hat / Fedora :: How To Schedule A Cron Job

Feb 28, 2010

I would like to schedule a cron job to run on every first saturday of the month, so far all documentation that I have looked at, mentions only a weekly cron or a monthly cron based on the date. Is it possible to run a monthly cron based on the day of the week?

View 1 Replies View Related

Red Hat / Fedora :: How To Schedule Job Using Cron

Aug 12, 2010

How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week. I tried the following way, not sure I can use logical not operator(!).

crontab -e
0 !9-17 * * * /path/to/script/file
I guess other way is
0 17-8 * * * /path/to/script/file

View 1 Replies View Related

Fedora :: Setup Cron Job To Update ?

Oct 30, 2009

Just installed Fedora 11. Like to setup cron job to update everthing on a regular basis. any examples?.

View 4 Replies View Related

Fedora :: Run A Cron Job Every Half Hour ?

Nov 15, 2010

I wish to run a cron job every half hour, where exactly do I put the job? The reason I am asking is that I am used to entering jobs into crontab, I am not used to using fedora and its cron layout.

View 2 Replies View Related

Fedora :: Cron Shutdown But Not On Weekend

Jul 5, 2011

Just read through some cron manuals. (man -k cron).Didnt understood that much though.I'm a gamer and loosing control over time at nights.
So what i want is that my computer shuts down itself at latest 1:30 am. Do i need to set up the command for each day (monday, tuesday.. and so on) or is there an option simliar to my 'example' below?

€dit: Both examples should do the trick.

Code:

# m h dom mon dow command
30 1 * * 1,2,3,4,5 shutdown -h +5 Get some sleep dude!
30 1 * * 1-5 shutdown -h +5 Get some sleep dude!

Where as 1 to 5 would be all weekdays, but not saturday or sunday morning at 1:30am.If i can shorten it to 1 line instead of 7 lines (one per day of week) that would be great.

View 14 Replies View Related

Red Hat / Fedora :: Where To Exactly Enter Cron Jobs

Nov 15, 2010

I have a Fedora 11 box and I am confused about cron, where exactly do I enter the cron jobs? For example, I have a job that needs to run every half hour.

View 8 Replies View Related

Red Hat / Fedora :: Get Files From Windows Using Cron Job ?

Nov 27, 2010

In my windows machine I have some txt files. I want run a script or command daily to get those file to my linux box using cron job.

Windows (192.168.1.5)

d:
ecords est.txt

to

Linux (192.168.1.

/data

I want to run that script in my linux box every day at 10.30 AM using cron job to get those files from windows to linux.

View 1 Replies View Related

Fedora :: Backupmng Every Hour In Cron?

May 28, 2010

I found (Red Hat Fedora Core 6 Server) a CRON entry for "backupmng" that has repeats at 1,16,31 and 46 minutes every hour of every day, 24/7.It is located at:/usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1.

View 1 Replies View Related

Fedora :: Mcelog Cron Warning Every Hour?

Mar 23, 2010

I'm experiencing a problem with cron.hourly running mcelog.cron on Fedora 11:Quote:mcelog: warning: 18446744073709551600 bytes ignored in each recordmcelog: consider an updateI've read a dead end email thread here from February 2010 describing what I am seeing on Fedora here:Does anyone have any insight into this problem? This is relevant portion of strace(1)ing mcelog which shows /dev/mcelog is open()d and configured correctly:Quote:

open("/dev/mcelog", O_RDONLY) = 3
ioctl(3, MTRRIOC_SET_ENTRY, 0x7fff13129bac) = 0
ioctl(3, MTRRIOC_DEL_ENTRY, 0x7fff13129ba8) = 0

[code]...

View 4 Replies View Related

Fedora :: Cron Mail In HTML Format?

Apr 11, 2011

All my cron jobs are configured to email output to [URL] Text content comes through, just fine. I have several cron jobs that output HMTL, however cron's output email displays the html tags as-is as text, instead of html. example: <br> Anyone got lucky being able to send cron output emails in html format (either by configuring fedora or through command line)? I have tried the following command lines in fedora crontab manager with no luck

TRY 1
CONTENT_TYPE=text/html /usr/bin/php /full/path/myphp.php | mail -s 'email subject' myemail@mydomain.com
(cron executes, but sends email as a text email, not html email)
TRY 2
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' myemail@mydomain.com

[code]...

View 1 Replies View Related

Red Hat / Fedora :: Cron Job - Rights To Execute Script

Sep 25, 2009

I cannot debug or resolve on a Fedora Core 8 machine. The problem exists in a Fedora 11 machine as well. I have a script that changes the default gw (I have 2 providers) if the link is down. The script runs very well when I call it from the terminal, however when I try to set a cron job to run it, it hangs in the middle of the script. I don't have any idea of what is happening, or how to debug but it seems to hang when running a command like: route add default gw [ip]

I can publish the script here, but it's fair an simple and the algorithm is:
- start
- Find out the current GW
- Find out the alternative GW
- Ping the current GW and capture the result
- if we have a fail then change the default gw to the alternative Gw and send an email, else do nothing
- end

The cron job is run as root, so I don't think this is a rights problem.

View 1 Replies View Related

Red Hat / Fedora :: Different Output Of FTP Between Cron And Command Line

May 31, 2010

I have the following shell:
export PATH=/u01/app/oracle/product/10.2.0/db_2/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
ftp -u -v -n -i > /bk01/exports/FTP_OUTPUT.LOG <<EOF
open 197.0.0.78
user orabackup orabackup
cd /media/disco/BK_Oracle
bin
put FILE00001.LOG
put FILE00001.DMP
quit
EOF

Executing the shell from command line, the output is:
Connected to 197.0.0.78.
220 Bienvenido al servicio FTP del servidor backup.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
331 Please specify the password.
230 Login successful.
250 Directory successfully changed.
200 Switching to Binary mode.
local: EXPO_APOT10G_20100531.LOG remote: EXPO_APOT10G_20100531.LOG 227 Entering Passive Mode (197,0,0,78,200,162) 150 Ok to send data. 226 File receive OK. 127498 bytes sent in 0.0022 seconds (5.7e+04 Kbytes/s)
local: EXPO_APOT10G_20100531.DMP remote: EXPO_APOT10G_20100531.DMP
227 Entering Passive Mode (197,0,0,78,175,141) 150 Ok to send data. 226 File receive OK. 458190848 bytes sent in 6.1 seconds (7.3e+04 Kbytes/s)
221 Goodbye.

Executing the shell from cron, the output is:
Connected to 197.0.0.78 (197.0.0.7.
220 Bienvenido al servicio FTP del servidor backup.
331 Please specify the password.
230 Login successful.
250 Directory successfully changed.
200 Switching to Binary mode.
local: EXPO_APOT10G_20100531.LOG remote: EXPO_APOT10G_20100531.LOG
local: EXPO_APOT10G_20100531.DMP remote: EXPO_APOT10G_20100531.DMP
221 Goodbye.

Why from cron the output no show the statistics in red ...?

View 2 Replies View Related

Fedora :: Running Rhythmbox - Client From Cron And Dbus?

Jan 16, 2010

i'm having a little issue with a small script i'm working on. It's a bash script that, amongst other things, checks the current playing song in Rhythmbox with "rhythmbox-client --print-playing". Now the thing is that if I run the script by hand it works perfectly, but when it's run by cron this part gives the following error:

Code:
(rhythmbox-client:9848): Rhythmbox-WARNING **: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.It's running on my own cron (crontab -e) set to my user.

View 1 Replies View Related

Fedora :: How Will More Than One Shell Script Cron - Weekly Work

Nov 23, 2010

What would happen if I place more than one shell script in the cron.weekly directory. would they run at the same time?

View 1 Replies View Related

Fedora :: Executable File Into The '/etc/cron.daily' Directory

Jan 19, 2011

I have noticed that in the /etc directory there are some subdirectories of /etc/cron.daily and /etc/cron.hourly. Also I have determined that there is a service included as part of the Fedora OS 'crond' which I have started with the use of 'service crond start'. My question is this. If I drop an executable file into the '/etc/cron.daily' directory will it just run? If not what configuration files should I go about editing to run my executable daily? There seems to be a pretty large network of cron related files. I'm trying to make sense out of all of it.

View 9 Replies View Related

Fedora :: Cron Job (Play Media File At Certain Time) Not Executing

Nov 6, 2009

I wanted to use cron to play a media file at a certain time (i.e. use it as an alarm clock). However it seems to do nothing. The contents of my crontab is:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
5 11 * * * env DISPLAY=:0.0 /usr/bin/totem /path_to_file

View 2 Replies View Related

Fedora :: Cron Backup Permission Denied On External Drive?

Aug 28, 2010

I have a cron backup scheme in which I rsync, then tar, then copy files on my internal hard drives to an external (USB) drive. When it works, it works. But I often get a "Permission Denied" message for all of these tasks. how the external drive is auto-mounted so I edited the etc/fstab so that the owner of the cron job is also the owner of the external drive (I think. Unfortunately, I'm not at that machine right now (it's at work), I can't give the exact fstab line (I will post it as an update to this thread next time I am at the machine).) BUT, I still get times when the cron backup runs fine and other times I get the Permission Denied. This is a shared machine that is dual-booted, so what I *think* is going on is that when the machine is rebooted to Fedora, but nobody logs in, I get a Permission Denied for the cron backup. It seems like on days when someone has logged in as the main user and left without logging out that the cron backup runs fine.

View 8 Replies View Related

Fedora :: Cron Opens Konsole On Script Execution And Leaves It Open?

Mar 14, 2011

I am trying to set up a simple script to automatically invoke streamripper to record my favourite radio shows. The script works fine in a terminal window (Konsole), but when scheduling this as a cron job (KCron via SystemSettings) a Konsole window pops up catching the streamripper output.

Now stramripper can behave with the --quiet option, and I set output redirects "> /dev/null 2>&1". Inside the script or on the command line of KCron.

Quote:

sh myscript.txt >/dev/null 2>&1

...or just as the script without the "sh" command. Same result. Still the same annoying Konsole terminal window pops up, now with no other content than what Cron obviously generates at the end of the script execution:

Quote:

--------------------------------------------------------------------------------
End of script execution. Type Enter or Ctrl+C to exit.
--------------------------------------------------------------------------------

Well, the whole point of this cron scheduling was to avoid manual intervention and create the MP3 file of the radio show automatically. how to avoid the terminal window completely?

Using KDE 4.5.5 and Fedora 13, Kernel 2.6.34.8-68

View 2 Replies View Related

Red Hat / Fedora :: Cron Jobs - Optimize Database Then Enable Apache Server

Sep 15, 2010

My server... its CentOS (redhat alike). I need to make the server disable apache server then run mysql command to optimize the databases then re-enable apache server in a specific time daily. Is it possible?

View 4 Replies View Related

Red Hat / Fedora :: ClamAV - Error "message Output: Script: Clamav-cron V. 0.6 - Copyright 2009, Stefano Stagnaro Scanned: /"

Mar 19, 2010

I have a server im trying to use with clamAV to scan it all and with cron job. it worked fine for few days, sending me emails with reports, i was happy. now i get ERR emails and when running manually i get the follwing message output: Script: clamav-cron v. 0.6 - Copyright 2009, Stefano Stagnaro Scanned: /

[Code]...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved