?
Solved

additional column in crontab file?

Posted on 2014-01-22
2
Medium Priority
?
194 Views
Last Modified: 2014-01-24
Hi

I'm looking at a list of cron jobs in the file created by crontab and they mostly seem to have the standard format

minute hour day_of_month month day_of_week command

However some of them have an extra word before the command. Do you have any idea what this is. I cant really post it as it might be sensitive but it would be something like

5 1 *** some_word command

Is that issuing the name of the user calling the command? Sorry i dont have access to a system at present to check this out for myself. I'm only on windows laptop reading some code

Thanks
0
Comment
Question by:andieje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 1000 total points
ID: 39801613
Some crontab formats (ie: vixie cron) allow for specifying the user to run the command as, eg:

5 1 * * * oracle /some/command

would run /some/command as the oracle user.

Using the traditional crontab format, the cronjob entry would be

5 1 * * * su oracle -c "/some/command"
0
 
LVL 8

Accepted Solution

by:
Surrano earned 1000 total points
ID: 39802348
The problem with this format is that it can't distinguish between "user oracle should execute /some/command" and "command oracle should be executed with parameter /some/command"

So whoever invented this must have made this field mandatory which is normally redundant since the "standard" name of a crontab file matches the username who should execute these jobs.

My best bet is that if you don't recognise this "some_word" as a user name then it must be a command name (without an absolute path is another big NO-NO in crontab)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question