Sponsored Content
Top Forums Shell Programming and Scripting Help in running a script after a particular time Post 302555745 by shankar1dada on Thursday 15th of September 2011 12:53:24 PM
Old 09-15-2011
Actually the script is fired every time a file is arrived. This is done through an external application. This featured cannot be disabled since its used by some other applications too.

So the idea is even though the script is fired every time a file is arrived, I wanted to check if 30 minutes has passed from the first file arrival time and then do the existing logic.

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

to compare latest logfile with the current running time of the script

how can i compare the latest log file with the current time.. consider i am running a script "a.sh" at 09:00 ( function of the script a.sh is to update the database ) this script is going to create logfile if the script is sucess in case of failure it is not going to create logfile.. ... (0 Replies)
Discussion started by: mail2sant
0 Replies

2. Shell Programming and Scripting

display time required to complete running script

hi is there any way i can display a countdown time needed to run a script? like load a counter at the beginning of the script with the estimated time and display the counter decrementing till it finishes running the script? (3 Replies)
Discussion started by: npatwardhan
3 Replies

3. Shell Programming and Scripting

Running batches of files at a time from a script

Hi I have a script that performs a process on a file. I want to know how to include a function to run a batch of files? Here is my script #!/bin/bash #---------------------------------------------------------------------------------------------------------------------- #This... (2 Replies)
Discussion started by: ladyAnne
2 Replies

4. Emergency UNIX and Linux Support

Help to optimize script running time

Dear Forum experts I have the below script which I made to run under bash shell, it runs perfectly for low records number, let us say like 100000. when I put all records (3,000,000), it's takes hours can you please suggest anything to optimize or to run in different way :-| {OFS="|";... (6 Replies)
Discussion started by: yahyaaa
6 Replies

5. Shell Programming and Scripting

How to know the exact running time of script!

Hi All, newbie here, I'm just wondering how can i know the exact running time of my script? Please advise, THanks, (1 Reply)
Discussion started by: nikki1200
1 Replies

6. Shell Programming and Scripting

Find the script running time and subtract from sleeptime

HI Guys, I want to find out the script running time and subtract from sleeptime. My Script Below Give me error :- #!/usr/bin/ksh timeout=100 start=$SECONDS sleep 20 end=$SECONDS echo "Time: $((end - start)) " ScTime = $((end - start)) (1 Reply)
Discussion started by: asavaliya
1 Replies

7. Shell Programming and Scripting

Setting time for running of the script

Dear all, I wonder if it is possible that we can run the script from time to time..I meant, it should repeat the sourcing of the script by itself? In my case, I need to source this script manually from time to time, like once in every 10 minutes. emily, (2 Replies)
Discussion started by: emily
2 Replies

8. Shell Programming and Scripting

Example of running script with time limits?

Hi, I want to write a script that does some sort of health check on the database. It will query the database for information, some query takes long and some are quick. For example, inside the script I will do something as below: #!/bin/ksh run_query_01 & run_query_02 &... (1 Reply)
Discussion started by: newbie_01
1 Replies

9. Shell Programming and Scripting

Kill long running script, if it crosses the threshold time

Hi, I need a script to kill the process if it running for long time. Inputs for the scripts: 1.test.sh (will be running fron cron scheduler) 2.1 hr (ie threshold_time - if the test.sh is running for more than 1 hr test.sh has to kill) Thanks, Divya (1 Reply)
Discussion started by: Divya Nochiyil
1 Replies

10. Shell Programming and Scripting

Killing the process if running for long time in script

I am running a script which will read the data from fail line by line and call the Java program by providing the arguments from the each line. The Java code is working fast for few records and for some records its getting hanged not providing response for morethan one hour. Currently am... (4 Replies)
Discussion started by: dineshaila
4 Replies
POE::Component::Jabber::Events(3pm)			User Contributed Perl Documentation		       POE::Component::Jabber::Events(3pm)

NAME
POE::Component::Jabber::Events - exports constants for tracking status of PCJ SYNOPSIS
PCJ_CONNECT PCJ_CONNECTING PCJ_CONNECTED PCJ_CONNECTFAIL PCJ_STREAMSTART PCJ_STREAMEND PCJ_NODESENT PCJ_NODERECEIVED PCJ_NODEQUEUED PCJ_SSLNEGOTIATE PCJ_SSLSUCCESS PCJ_SSLFAIL PCJ_AUTHNEGOTIATE PCJ_AUTHSUCCESS PCJ_AUTHFAIL PCJ_BINDNEGOTIATE PCJ_BINDSUCCESS PCJ_BINDFAIL PCJ_SESSIONNEGOTIATE PCJ_SESSIONSUCCESS PCJ_SESSIONFAIL PCJ_RTS_START PCJ_RTS_FINISH PCJ_READY PCJ_SHUTDOWN_START PCJ_SHUTDOWN_FINISH PCJ_SOCKETFAIL PCJ_SOCKETDISCONNECT DESCRIPTION
POE::Component::Jabber::Events exports many useful constants for tracking the status of PCJ during its operation. Simply subscribe to these events in order to receive notification. EXPORTS
Below are the exported constants with a brief explanation of what it is signalling to the end developer: PCJ_CONNECT 'connect' or 'reconnect' event has fired. PCJ_CONNECTING Connecting is now in process PCJ_CONNECTED Initial connection established PCJ_STREAMSTART A <stream:stream/> tag has been sent. The number of these events is variable depending on which Protocol is currently active (ie. XMPP will send upto three, while LEGACY will only send one). PCJ_SSLNEGOTIATE TLS/SSL negotiation has begun. This event only is fired from XMPP and JABBERD20_COMPONENT connections. PCJ_SSLSUCCESS TLS/SSL negotiation has successfully complete. Socket layer is now encrypted. This event only is fired from XMPP and JABBERD20_COMPONENT connections. PCJ_SSLFAIL TLS/SSL negotiation has failed. This event only is fired from XMPP and JABBERD20_COMPONENT connections. PCJ_AUTHNEGOTIATE Whatever your authentication method (ie. iq:auth, SASL, <handshake/>, etc), it is in process when this status is received. PCJ_AUTHSUCCESS Authentication was successful. PCJ_AUTHFAIL Authentication failed. PCJ_BINDNEGOTIATE For XMPP connections: this indicates resource binding negotiation has begun. For JABBERD20_COMPONENT connections: domain binding negotiation has begun. This event will not fire for any but the above two connection types. PCJ_BINDSUCCESS For XMPP connections: this indicates resource binding negotiation was sucessful. For JABBERD20_COMPONENT connections: domain binding negotiation was successful. This event will not fire for any but the above two connection types. PCJ_BINDFAIL Binding for which ever context has failed. PCJ_SESSIONNEGOTIATE Only for XMPP: This indicates session binding (XMPP IM) negotiation has begun. PCJ_SESSIONSUCCESS Only for XMPP: This indicates session binding (XMPP IM) negotiation was successful. PCJ_SESSIONFAIL Session negotiation has failed for which ever context. PCJ_NODESENT A Node has been placed, outbound, into the Wheel. ARG0 will be the node. PCJ_NODERECEIVED A Node has been received. ARG0 will be the node. PCJ_NODEQUEUED An attempt to send a Node while there is no valid, initialized connection was caught. The Node has been queued. See POE::Component::Jabber event 'purge_queue' for details. ARG0 will be the node. PCJ_RTS_START A return_to_sender event has been fired for an outbound node. ARG0 will be the node. PCJ_RTS_FINISH A return_to_sender event has been fired for a matching inbound node. ARG0 will be the node. PCJ_READY This event indicates that the connection is fully initialized and ready for use. Watch for this event and begin packet transactions AFTER it has been fired. PCJ_STREAMEND A </stream:stream> Node has been sent. This indicates the end of the connection and is called upon 'shutdown' of PCJ after the Node has been flushed. PCJ_SHUTDOWN_START This indicates that 'shutdown' has been fired and is currently in progress of tearing down the connection. PCJ_SHUTDOWN_FINISH This indicates that 'shutdown' is complete. PCJ_SOCKETFAIL This indicates a socket level error. ARG0..ARG2 will be exactly what was passed to us from POE::Wheel::ReadWrite. PCJ_SOCKETDISCONNECT This indicates the socket has disconnected and will occur in both normal, and in error states. AUTHOR
(c) Copyright 2007-2009 Nicholas Perez. Released under the GPL. perl v5.12.4 2011-08-09 POE::Component::Jabber::Events(3pm)
All times are GMT -4. The time now is 05:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy