A well established form of application cron jobs look like this:
The repetition makes it a long line, hard to read, hard to maintain.
I suggest the following instead:
Should work even with the oldest Bourne shells.
Don't miss the semicolon between the command and the closing brace! The shell syntax requires it. Also the braces must be separated with a space character.
These 4 Users Gave Thanks to MadeInGermany For This Post:
Hi,
as a Mac OS X user I am not into Unix at all. But since it is possible to run Unix application on Mac I am specialy interested in a program making scientifical graphs. There is SigmaPlot for WIN PC´s and this is more or less what I would like to use.
So, here comes the question: is there a... (3 Replies)
I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Hi,
How to add a cron job in /etc/crontab using a shell script.??:confused:
Actually the requirement is we need to run a script say, XXX.sh every 10 min through “cron”.
That can be achieved by adding the below code line in the /etc/crontab , (i.e., “crontab -e ” command to add this to the... (4 Replies)
Hi ,
I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility )
I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
ofIn a big Unix environment you likely install cron jobs like this on a thousand systems:
39 15 * * * { /usr/local/monitoring/sendstats ; } >/dev/null 2>&1If all the system clocks are synchronized (usually via NTP), these jobs run *exactly* at the same time.
If the cron job accesses a shared... (2 Replies)
Hi,
1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th... (5 Replies)
Hello,
I have written a cron job to automate the sftp of files using key authentication.
I wanted to add a timeStamp and name of file sent to a log file and append each these details to the same file each time files are sent and if possible include whether the files were sent successfully or not.... (3 Replies)
Dear members, moderators and others.
While working on <insert project>, a need has surfaced to watch a directory, and when a file comes, to do appropriate action.
So, i started writing some shell code, aware of linux inotify-tools package with inotifywait.
Also, i'm seeing a lot of similar... (1 Reply)
Discussion started by: Peasant
1 Replies
LEARN ABOUT HPUX
cmstartres
cmstartres(1m)cmstartres(1m)NAME
cmstartres - starts resource monitoring on the local node for an EMS resource that is configured in a Serviceguard package.
SYNOPSIS
cmstartres [-v] [-u] -p package_name resource_name
DESCRIPTION
cmstartres starts resource monitoring for an EMS resource on the local node. This resource must be configured in the specified pack-
age_name.
To start a resource monitoring for an EMS resource in the package, a user must either be superuser(UID=0), or have an access policy of
FULL_ADMIN allowed in the cluster configuration file. See access policy in cmquerycl(1m) or cmmakepkg(1m).
Options
cmstartres supports the following options.
-v Verbose output will be displayed.
-u Wait for the EMS resource to be available before starting resource monitoring.
-p package_name
The name of the package where the EMS resource is configured in. This is a required parameter.
resource_name
Name of the EMS resource to start resource monitoring for. This resource must be configured in the specified pack-
age_name. This is a required parameter.
RETURN VALUE
cmstartres returns the following values:
0 Successful completion.
1 Command failed.
EXAMPLES
To start resource monitoring for the EMS resource /net/interfaces/lan/status/lan0 for package pkgA, do the following:
cmstartres -u -p pkgA /net/interfaces/lan/status/lan0
AUTHOR
cmstartres was developed by HP.
SEE ALSO cmstopres(1m), cmquerycl(1m), cmmakepkg(1m).
Requires Optional Serviceguard Software cmstartres(1m)