9 More Discussions You Might Find Interesting
1. HP-UX
Hi Guys,
I need help to clear my doubt w.r.t Crontab execution.
uname -a
HP-UX myservername B.11.31 U ia64 1422528451 unlimited-user licenseI created a crontab entry to execute particular job on Saturday 11/15/2014 11:22
Below is the cron entry
#refresh DEVDB from PRODDB
22 11 15 11 6... (6 Replies)
Discussion started by: rocky.community
6 Replies
2. UNIX for Dummies Questions & Answers
Dear Folks,
I have written a shell script which internally connects to oracle database through sqplplus command line.
The script runs fine when run manually.
Now I am scheduling it to run (Linux environment) from crontab.
In crontab it is failing with an error:
sqlplus command... (6 Replies)
Discussion started by: tamojitc
6 Replies
3. Shell Programming and Scripting
Hi All,
I am facing a problem with crontab.I made an entry in crontab like this
05 07 * * * /afs2/cdwfullacc/current/exe/cdw_generate_special_klant.sh > /afs2/cdwfullacc/current/scratch/cdw_gen_cron.log
But job was not getting executed.
Entry in crontab was made with same user by whom... (4 Replies)
Discussion started by: krishna_gnv
4 Replies
4. Shell Programming and Scripting
Hi,
I have shell script "A" which is executing oracle pl/sql procedure and initiate its multiple threads at a time as below on given user value in an other script "B".
I want to execute script "A" after every second with out cron tab as " A " will keep on executing after every second till... (1 Reply)
Discussion started by: saad.imran@gmai
1 Replies
5. Shell Programming and Scripting
I have an expect script that interrogates several hundred unix servers for both access and directories therein using "ssh user@host ls -l /path". The combination of host/path are unique but the host may be interrogated multiple times if there are multiple paths to test.
The expect script is run... (2 Replies)
Discussion started by: twk
2 Replies
6. UNIX for Dummies Questions & Answers
Hi
I have shell script to excute the SQL script.And i have scheduled those shell script in crontab.But the Shell script is not running timely and i got the below error
Crontab entry
15 05 17 7 * /export/home/vcpsapp/vcps/stat.sh
Output
Your "cron" job on uspxivus16... (3 Replies)
Discussion started by: mak_boop
3 Replies
7. UNIX for Dummies Questions & Answers
I need your help please
Inin a production system i found crontab entries was removed because i typed crontab -l with username corasc and didn't show anything.
i asked the administrador to restored the mentioned crontab, he restored the crontab:
The problem is when restored the crontab file is... (2 Replies)
Discussion started by: alexcol
2 Replies
8. Shell Programming and Scripting
is it possible to soecify time overnight in 5 days for example:
0 18-7 * * 1-5 /mycode
is this okay to use 18-7 because im not getting the results correctly? (4 Replies)
Discussion started by: vadharah
4 Replies
9. Shell Programming and Scripting
I want to execute a shell script without ./ symbol.
For example:
./my_script ===== my_script (both of them can execute my script)
both of them are the same as result. (7 Replies)
Discussion started by: mehmetned
7 Replies
crontab(1) General Commands Manual crontab(1)
NAME
crontab - user job file scheduler
SYNOPSIS
[file]
[username]
[username]
[username]
DESCRIPTION
The command manages a crontab file for the user. You can use a crontab file to schedule jobs that are executed automatically by (see
cron(1M)) on a regular basis. The command has four forms:
Create or replace your crontab file
by copying the specified file, or standard input if file is omitted or is specified as file, into the crontab
directory, The name of your crontab file in the crontab directory is the same as your effective user name.
If the compartmentalization feature is enabled, the crontab file is your effective user name followed by a
colon followed by the compartment id from which the crontab file is created.
Edit a copy of the user's crontab file, or create an empty file to
edit if the crontab file does not exist. When editing is complete, the file will be copied into the crontab
directory as the user's crontab file. If the compartmentalization feature is enabled, it only edits a copy
of the user's crontab file from the compartment that the crontab files were created from.
Lists the user's crontab file.
If the compartmentalization feature is enabled, it only lists the crontab files from the compartment that the
crontab files were created from.
Remove the user's crontab file from the crontab directory.
If the compartmentalization feature is enabled, it only removes the crontab files from the compartment that
the crontab files were created from.
Only a privileged user can use username following the or options, to edit, list, or remove the crontab file of the specified user.
The entries in a crontab file are lines of six fields each. The fields are separated by spaces or tabs. The lines have the following for-
mat:
minute hour monthday month weekday command
The first five are integer patterns that specify when the sixth field, command, should be executed. They can have the following ranges of
values:
minute The minute of the hour,
hour The hour of the day,
monthday The day of the month,
month The month of the year,
weekday The day of the week,
Each pattern can be either an asterisk meaning all legal values, or a list of elements separated by commas. An element is either a number
in the ranges shown above, or two numbers in the range separated by a hyphen (meaning an inclusive range). Note that the specification of
days can be made in two fields: monthday and weekday. If both are specified in an entry, they are cumulative. For example,
runs command at midnight on the first and fifteenth of each month, as well as every Monday. To specify days in only one field, set the
other field to asterisk For example,
runs command only on Mondays.
The sixth field, command (the balance of a line including blanks in a crontab file), is a string that is executed by the shell at the spec-
ified times. A percent character in this field (unless escaped by a backslash is translated to a newline character, dividing the field
into "lines". Only the first "line" (up to a or end-of-line) of the command field is executed by the shell. Any other "lines" are made
available to the command as standard input.
Blank lines and those whose first non-blank character is will be ignored.
invokes the command from the user's directory with the POSIX shell, It runs in the queue (see queuedefs(4)).
supplies a default environment for every shell, defining:
Users who desire to have their executed must explicitly do so in the crontab entry or in a script called by the entry.
You can execute if your name appears in the file If that file does not exist, you can use if your name does not appear in the file If only
exists and is empty, all users can use If neither file exists, only the user can use The files consist of one user name per line.
Security Restrictions
If the compartmentalization feature is enabled, and invoke the jobs from the compartment that the jobs were created from. Note that cre-
ates the job files in Hence, if the command is invoked from a compartment which has no write access to this directory and which disallows
the privilege, fails to schedule the jobs. See compartments(5) and privileges(5) for more information.
EXTERNAL INFLUENCES
Environment Variables
determines the interpretation of text within file as single and/or multibyte characters.
determines the language in which messages are displayed.
If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty
variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5). determines the editor to be invoked when option is specified. The default editor is vi.
International Code Set Support
Single-byte and multibyte character code sets are supported.
WARNINGS
Be sure to redirect the standard output and standard error from commands. If this is not done, any generated standard output or standard
error is mailed to the user.
FILES
Main cron directory
List of allowed users
List of denied users
Accounting information
Directory containing the crontab files
SEE ALSO
sh(1), cron(1M), queuedefs(4), compartments(5), privileges(5).
STANDARDS CONFORMANCE
crontab(1)