10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
3. Shell Programming and Scripting
Hi,
I've a file in the following format
1999-APR-8 17:31:06 1500 3 45
1999-APR-8 17:31:15 1500 3 45
1999-APR-8 17:31:25 1500 3 45
1999-APR-8 17:31:30 1500 3 45
1999-APR-8 17:31:55 1500 3 45
1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
4. UNIX for Advanced & Expert Users
Hi All
I want to change the date timestamp for the log file but to do it within crontab
I've tried the following..
40 11 * * * /data/dart/dc65.1/bin/adstats.sh > /data/dart/dc65.1/bin/adstats_`date'+%d:%m-%H.%M.%S'`.log 2>&1
But I only get adstats_
Any ideas?
Thanking you all... (4 Replies)
Discussion started by: Zak
4 Replies
5. Shell Programming and Scripting
2009/03/30 08:11:34.553 DFP
2009/03/30 08:11:36.861 PLO
I want it to be
2009/03/30 09:11:34.553 DFP
2009/03/30 09:11:36.861 PLO
and
2009/03/30 23:11:34.553 DFP
2009/03/30 23:11:36.861 PLO
to be
2009/03/30 00:11:34.553 DFP
2009/03/30 00:11:36.861 PLO
Can we use sed or... (4 Replies)
Discussion started by: lalelle
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
Please could someone advise on the following if possible. I have built a unix server, and was given the wrong hostname. I need to amend the hostname to the correct name. And I don't want to rebuild the server again.
I've tried the following to do change :
hostname DTCT-TD3FIXI01A... (3 Replies)
Discussion started by: venhart
3 Replies
7. Shell Programming and Scripting
Hi all, below is my current scriptftp -n << FTPCTRL
open $my_ip
user $my_user $my_pass
ascii
prompt off
lcd $myDIR
cd $ftp_cd
$OPS $myfile
FTPCTRLI'd like to amend it to sftp mode. Please advise the correct step.I consulted the man pages of sftp and I suppose I should be using the... (1 Reply)
Discussion started by: new2ss
1 Replies
8. Solaris
Hi guys,
I'm fidling around Partition space on SMC
and on changing partition size, or assiging an unused partition to "usr", or even trying to alter the disk layout I get:
Attempted Format of Partition /dev/dsk/c1t0d0s3 failed with unexpected CIM error:
CIM_ERR_FAILED:CIM_ERR_FAILED:... (2 Replies)
Discussion started by: drchris
2 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to write a command that backs up certain files into my current directory and adds a prefix to the backed up file name. I realise this can be done in a script by specifying each individual file but would like to know if it can be done on one line and made an alias.
I have the... (5 Replies)
Discussion started by: m223464
5 Replies
10. Solaris
How can I change teh timestamp of a file (1 Reply)
Discussion started by: krishan
1 Replies
Scheduler Implementation API(3) globus scheduler event generator Scheduler Implementation API(3)
NAME
Scheduler Implementation API -
Enumerations
enum globus_scheduler_event_generator_error_t { GLOBUS_SEG_ERROR_TYPE_NULL = 1024, GLOBUS_SEG_ERROR_TYPE_ALREADY_SET,
GLOBUS_SEG_ERROR_TYPE_INVALID_MODULE, GLOBUS_SEG_ERROR_TYPE_INVALID_FORMAT, GLOBUS_SEG_ERROR_TYPE_OUT_OF_MEMORY,
GLOBUS_SEG_ERROR_TYPE_LOADING_MODULE }
Functions
globus_result_t globus_scheduler_event (const char *format,...)
globus_result_t globus_scheduler_event_pending (time_t timestamp, const char *jobid)
globus_result_t globus_scheduler_event_active (time_t timestamp, const char *jobid)
globus_result_t globus_scheduler_event_failed (time_t timestamp, const char *jobid, int failure_code)
globus_result_t globus_scheduler_event_done (time_t timestamp, const char *jobid, int exit_code)
globus_result_t globus_scheduler_event_generator_get_timestamp (time_t *timestamp)
Detailed Description
Scheduler-specific SEG module implementations use this API to issue events to the Job State Monitor.
Events occur whenever a job is placed in the scheduler's queue (PENDING), begins execution (ACTIVE), terminates successfully (DONE), or
ends abnormally (FAILED).
A SEG module should register an event with the Globus event driver (most likely using either the Globus Callback or Globus XIO interfaces)
in its activation function and then return. All events should be triggered from callbacks. When the SEG detects that it should terminate,
it will deactivate the SEG module it started. The SEG module should wait for any outstanding callbacks to subside and before returning from
its deactivation function to ensure that all events will be properly dispatched. After deactivation is complete, the SEG will unload the
shared module and terminate.
Enumeration Type Documentation
enum globus_scheduler_event_generator_error_t
Error types used by the SEG.
Enumerator:
GLOBUS_SEG_ERROR_TYPE_NULL
NULL Parameter.
GLOBUS_SEG_ERROR_TYPE_ALREADY_SET
Already called a one-time function.
GLOBUS_SEG_ERROR_TYPE_INVALID_MODULE
Shared module missing descriptor.
GLOBUS_SEG_ERROR_TYPE_INVALID_FORMAT
Invalid printf format for SEG protocol message.
GLOBUS_SEG_ERROR_TYPE_OUT_OF_MEMORY
Out of memory.
GLOBUS_SEG_ERROR_TYPE_LOADING_MODULE
Unable to load scheduler module.
Function Documentation
globus_result_t globus_scheduler_event (const char *format, ...)
Send an arbitrary SEG notification. Parameters:
format Printf-style format of the SEG notification message
... Varargs which will be interpreted as per format.
Return values:
GLOBUS_SUCCESS Scheduler message sent or queued.
GLOBUS_SEG_ERROR_NULL Null format.
GLOBUS_SEG_ERROR_INVALID_FORMAT Unable to determine length of formatted string.
globus_result_t globus_scheduler_event_pending (time_ttimestamp, const char *jobid)
Send a job pending event to the JobSchedulerMonitor implementation. Parameters:
timestamp Timestamp to use for the event. If set to 0, the time which this function was called is used.
jobid String indicating the scheduler-specific name of the job.
Return values:
GLOBUS_SUCCESS Scheduler message sent or queued.
GLOBUS_SEG_ERROR_NULL Null jobid.
GLOBUS_SEG_ERROR_INVALID_FORMAT Unable to determine length of formatted string.
globus_result_t globus_scheduler_event_active (time_ttimestamp, const char *jobid)
Send a job active event to the JobSchedulerMonitor implementation. Parameters:
timestamp Timestamp to use for the event. If set to 0, the time which this function was called is used.
jobid String indicating the scheduler-specific name of the job.
Return values:
GLOBUS_SUCCESS Scheduler message sent or queued.
GLOBUS_SEG_ERROR_NULL Null jobid.
GLOBUS_SEG_ERROR_INVALID_FORMAT Unable to determine length of formatted string.
globus_result_t globus_scheduler_event_failed (time_ttimestamp, const char *jobid, intfailure_code)
Send a job failed event to the JobSchedulerMonitor implementation. Parameters:
timestamp Timestamp to use for the event. If set to 0, the time which this function was called is used.
jobid String indicating the scheduler-specific name of the job.
failure_code Failure code of the process if known.
Return values:
GLOBUS_SUCCESS Scheduler message sent or queued.
GLOBUS_SEG_ERROR_NULL Null jobid.
GLOBUS_SEG_ERROR_INVALID_FORMAT Unable to determine length of formatted string.
globus_result_t globus_scheduler_event_done (time_ttimestamp, const char *jobid, intexit_code)
Send a job done event to the JobSchedulerMonitor implementation. Parameters:
timestamp Timestamp to use for the event. If set to 0, the time which this function was called is used.
jobid String indicating the scheduler-specific name of the job.
exit_code Exit code of the process if known.
Return values:
GLOBUS_SUCCESS Scheduler message sent or queued.
GLOBUS_SEG_ERROR_NULL Null jobid.
GLOBUS_SEG_ERROR_INVALID_FORMAT Unable to determine length of formatted string.
globus_result_t globus_scheduler_event_generator_get_timestamp (time_t *timestamp)
Get the timestamp for the earliest event an SEG module should send. Parameters:
timestamp Pointer to a time_t which will be set to the timestamp passed to the SEG executable. The module should not send any events
which occur prior to this timestamp.
Return values:
GLOBUS_SEG_ERROR_NULL Null timestamp.
GLOBUS_SUCCESS Timestamp value updated. If the timestamp was not set on the SEG command-line, then the value pointed to by timestamp
will be set to 0.
Author
Generated automatically by Doxygen for globus scheduler event generator from the source code.
Version 4.6 Mon Apr 30 2012 Scheduler Implementation API(3)