LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-06-2011, 06:43 AM   #1
aman_m03
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
To Find Location Of Script


I m working somewhere and person working earlier over here set one cron job which executes one php script at 6:00 pm daily And I m getting mail regarding the execution and output of this script daily.

Therefore one php script is running as a cronjob daily.

1. Now i want to know the name of the script or path of this script.But i m not getting
so plz tell me HOW CAN I CAME TO KNOW ABOUT THE NAME or PATH OF THIS SCRIPT

2. And plz tell me if we schedule one cronjob then in how many files entry for this job will be added and plz give me the names of those files where entry will be added.
 
Old 01-06-2011, 08:33 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,007
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
On Linux there are cron jobs for users setup pretty much the same way as they are in UNIX. You can see those files in /var/spool/cron. The user that owns the file is the user the commands within it are run as. The files are ascii files so you can cat them to see their contents.

Also you can use "crontab -l" as a given user to see that user's cron (e.g. if you are root crontab -l will show you root's crontab). Also if you are root you can see other people's crontabs by running "crontab -l -u <user>".

Unlike UNIX, Linux also has special cron for hourly, weekly, daily and monthly. These files can be found in /etc (ls -ld /etc/cron*).

The script you're looking for is likely in one of those but it is possible that one of those is running something that is in turn running the script you're looking for so you may need to go through the scripts you find to see exactly what they're doing.

You can get more detail on cron by viewing manual pages with "man cron" and "man crontab" commands.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
find the location fo the insttaled software MarD Linux - Newbie 6 10-28-2009 06:48 PM
How to find physical location of a file on the HDD? CJS Linux - General 2 01-18-2009 10:14 AM
cant find the location of cd harshanair17 Linux - Newbie 4 08-07-2008 12:20 AM
Find location within building - something like GPS? jantman Linux - Hardware 4 03-13-2008 11:49 PM
Find a link in web folder location tanveer Linux - General 2 10-16-2007 09:56 PM


All times are GMT -5. The time now is 03:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration