Sponsored Content
Top Forums Shell Programming and Scripting comment out a cron job as part of a script Post 302294526 by 22blaze on Thursday 5th of March 2009 11:07:18 AM
Old 03-05-2009
Understood on the code posting. I will keep this in mind for future posts.
This works great. Thanks for the quick response, much appreciated.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Cron job for Perl script

Although there are many threads on this forum regarding cron, none have specifically answered my question. So hopefully someone can shed some light on what I'm doing wrong.. I have a perl script that I want to run in a cron job. Since I've read that cron doesn't have any environments set, I... (3 Replies)
Discussion started by: man
3 Replies

2. UNIX for Dummies Questions & Answers

a cron job needs a perl script to execute

Hello evreyone, this is my first post, and to say i'm new to this is an understatement. I know very little about perl scripts and hope some one can help me. i'm looking to get a script that a cron job can execute. what the script needs to to is 1) connect to a mysql database 2) go to a... (2 Replies)
Discussion started by: Exader
2 Replies

3. UNIX for Advanced & Expert Users

Need help with a script run by a cron job.

Hi, new to this forum and not sure if this is the right place to post. I'm new to cron jobs and scripts, and I need some help with a script to be used with a cron job. I already have a bot set up at a certain website address and need a script that the cron job will load every day that tells it to... (1 Reply)
Discussion started by: klawless
1 Replies

4. Shell Programming and Scripting

Cron job shell script..

Hey Guys, i was trying out a shell script which has to remove a file for every 90 mins. this is the code i came up with . $ crontab -e file1 file1 contains 30 1 * * * * rm -r /folder1/folder2/somefile.txt Now i need the cron to run for every 90 mins. the problem with this is... (8 Replies)
Discussion started by: Irishboy24
8 Replies

5. Shell Programming and Scripting

Cron job to prevent simultaneous script

I'm using a shared server on Hostgator (Linux CentOS). I'm trying to set a cron job using the Control Panel that will check if its already running before starting a new one. I've tried the following... * * * * * && but I get this error emailed to me... /bin/sh: line 0: Any... (5 Replies)
Discussion started by: tech9821
5 Replies

6. UNIX for Dummies Questions & Answers

cron job for the created shell script

Hi am newbie for unix shell.. how to create a cron job for my already created shell script.:confused: Thanks! (1 Reply)
Discussion started by: vidhyaS
1 Replies

7. Solaris

cron job for phython script

Hello, How do I schedule a cron job for a phython script to run every hour? Also, in case in future I decide to edit/cancel the job how should i do it? Does it matter where my phython script is located? Also, I have am using mailx utility in my script to send me an email and dont want... (7 Replies)
Discussion started by: siddhans
7 Replies

8. Shell Programming and Scripting

how do I run bash script using cron job

How do I run bash script using a cron job? I have tried to just write the path of the script, but that didn't work. (1 Reply)
Discussion started by: locoroco
1 Replies

9. UNIX for Dummies Questions & Answers

Submitting cron job through script

I would like to run a script, as root, which will eventually set up cron job for a non privilege user. Please advice. (9 Replies)
Discussion started by: atanubanerji
9 Replies

10. HP-UX

How to end script in a cron job?

I've created a script to copy backup files from an HP-UX 11iv3 system to an NFS share on another machine. I want to schedule the script to run via cron. The script is simply three lines of cp /backups/Backup /shared/Backup. I've saved the script as a .sh file and call it with KSH. Do I need to... (3 Replies)
Discussion started by: jduehmig
3 Replies
EvmEventPost(3) 					     Library Functions Manual						   EvmEventPost(3)

NAME
EvmEventPost - Posts an event LIBRARY
EVM Support Library (libevm.so, libevm.a) SYNOPSIS
#include <evm/evm.h> EvmStatus_t EvmEventPost( EvmConnection_t connection, const EvmEvent_t event); EvmStatus_t EvmEventPostVa( EvmConnection_t connection, const EvmEvent_t event, [EvmItemId_t item_id, const EvmItemValue_t item_value,] ... EvmITEM_NONE); OPERANDS
The connection through which events are posted. See the EvmConnCreate(3) reference page. The event that is to be posted to the specified connection. See the EvmEventCreate(3) reference page. The identifier for the event data item to be set. See the EvmItemSet(3) reference page for possible values for this parameter, and the data contained by the data item. The value to be stored in the associated item indi- cated by item_id. DESCRIPTION
An EVM client program uses the routines described on this page to pass events to the EVM daemon, for distribution to subscribers. EvmEventPost() posts an event that has already been created with EvmEventCreate() or EvmEventCreateVa(). EvmEventPostVa() allows you to create, post and destroy an event in a single call. It first creates a new event, adding to it any data items supplied in the call. If the event parameter is not NULL, the contents of the supplied event are then merged into the new event, and the new event is posted. The new event is destroyed before the routine returns, and the supplied event (if any) is unchanged. Refer to the EvmItemSetVa(3) reference page for details of the item_ids and item_values that may be passed as parameters to this routine. If you pass NULL as the connection parameter to either of these routines the event is posted to the local daemon, using a temporary connec- tion, which is destroyed before the routine returns. Because of the overhead associated with creating and destroying an EVM connection, you should pass only NULL if your program rarely posts events. If either routine is unable to pass the event to the daemon, the error is reported immediately through the return code. If the event is passed to the daemon, the type of response depends on the response mode specified when the connection was created. NOTES
These routines do not destroy the event passed as the event parameter. You must explicitly call EvmEventDestroy() to destroy the event and free its memory once it is no longer needed. You should avoid posting a large number of events in rapid succession, since this may cause the connection's send buffer to fill, and the posting process to block until the EVM daemon has relieved some or all of the data. Although this is a normal part of process synchroniza- tion, some high-performance processes may prefer to block as infrequently as possible. EvmConnControl() can be used to increase the size of the send buffer. See the EvmConnControl reference page for more information. If you use extended item_ids to supply names and values of variable items to EvmEventPostVa(), be sure to supply the correct number of parameters for each. A variable name and value is required for all such items, and some variable types require an additional argument. Refer to the EvmItemSetVa(3) reference page for more information. RESTRICTIONS
None RETURN VALUES
The operation was completed without error. The EVM daemon rejected the event. The most likely reasons for this to happen are that no tem- plate has been registered for the event, or that the caller is not authorized to post the event. See the evmtemplate(4) and evm.auth(4) reference pages for more information. One of the arguments to the function was invalid. A value in a structure member is invalid. An operation failed because an attempt to acquire heap memory failed. The connection's output buffer is full, and the event has been queued in heap space. Another attempt will be made to flush the queue when the next call is made to EvmEventPost(3), or when the caller invokes EvmConnFlush(3). This error code is only returned for connections for which EvmConnControl(3) has been invoked with the request argument set to EvmCONN_POST_NONBLOCK_SET. A read error occurred while reading from the EVM daemon connection. The connection is no longer usable, and the caller should invoke EvmConnDestroy() to destroy it. A write error occurred while writing to the EVM daemon connection. The con- nection is no longer usable, and the caller should invoke EvmConnDestroy() to destroy it. ERRORS
None FILES
None SEE ALSO
Routines: EvmConnControl(3), EvmConnCreate(3), EvmConnDestroy(3), EvmConnRegistrationGet(3), EvmEventCreate(3), EvmEventDestroy(3), EvmItemSetVa(3) Event Management: EVM(5) Event Connection: EvmConnection(5) EVM Events: EvmEvent(5) delim off EvmEventPost(3)
All times are GMT -4. The time now is 03:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy