Solved

additional column in crontab file?

Posted on 2014-01-22
2
181 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
2 Comments
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 250 total points
Comment Utility
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 250 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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 …
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now