Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Email out after second resubmit, in spite of a time stamp update. Post 303045461 by xgringo on Wednesday 25th of March 2020 05:50:54 PM
Old 03-25-2020
Email out after second resubmit, in spite of a time stamp update.

I have a resubmit script renames files in a directory, I want to notify via email the third time. I was just going to run the resubmit.sh script in cron every 15 minutes but the timestamp thing is killing me since it updates each time.
Code:
/apps/cwd/scripts/resubmit.sh

this resubmit.sh can't be changed it hits a couple of jar files and tries to resubmit these files. It updates the time stamp. Each time the resubmit.sh is run. If they are good they move on in the process, if they error again I need a way to send an email out on the third time the resubmit runs and hits the same files. How can I alert on these guys if the timestamp is updated everytime the resubmit runs?
Code:
 /apps/cwd/ripside/filename.err,
/apps/cwd/ripside/filename.rpt

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to MV without changing Time Stamp

Hi, I need to move the set of files, and it should be same time stamp as previous. How to do this? (3 Replies)
Discussion started by: redlotus72
3 Replies

2. UNIX for Dummies Questions & Answers

Date/Time Stamp

Hi All, Wondering if there is have a date added at the end of a test string. I have a hypothetical text file day one: John Paul George When the file day one is output, I'd like it to read something like this: John 101406 Paul 101406 George 101406 Day two, when the same text file... (0 Replies)
Discussion started by: JimmyFlip
0 Replies

3. Shell Programming and Scripting

Time stamp calculation

Hi all; I'm relatively new to scripting,I am working on a monitoring script.....where in i have to write subroutine which does the follows: It will check the time stamp of a file ( Oracle remarchive files) and compare it with existing time.If the time difference happen to be more than 90... (6 Replies)
Discussion started by: maverick_here
6 Replies

4. Shell Programming and Scripting

regarding time stamp

hi everyone i am facing a strange problem here suppose content of my file is a=1,2,3 b=2,3,4 c=4,5,6 time= now the problem is i want to add value in front of time variable and the value should be i format only "HHMMSS" so it should be like this a=1,2,3 b=2,3,4 c=4,5,6... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies

5. Shell Programming and Scripting

How to get time duration between two human readable time stamp in Unix?

Here is two time I have: Jul 12 16:02:01 Jul 13 01:02:01 and how can I do a simple match to get difference between two time which is 09:00:00 Thanks in advance. (3 Replies)
Discussion started by: ford99
3 Replies

6. Shell Programming and Scripting

file time stamp

Hi All, I am facing small problem. i want to print file time stamp on which date file has placed in the server. i have given some code but its not giving the year. any help appreciated. regards rajesh. (4 Replies)
Discussion started by: rajesh_pola
4 Replies

7. Solaris

System time and Cron time stamp not matching

On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help here is what i get when i check for system date infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies

8. Shell Programming and Scripting

Time stamp Difference

I have a log file which wrote time stamp like this 2013-02-11 00:46:40.389037 2013-02-12 11:46:40.197045 can any one help me to get the time stamp difference of these two line in seconds. (4 Replies)
Discussion started by: netdbaind
4 Replies

9. UNIX for Advanced & Expert Users

Need mtime with time stamp

hi all find /folder1 -mtime 1 >folder1 with the above command , I can get the output of all the files which are modified(within folders and sub folders of folder1) in the last 24 hours. but the listed files output , does not contain the time stamp with it. I request you to give... (4 Replies)
Discussion started by: sidharthmellam
4 Replies

10. Shell Programming and Scripting

Update time stamp and replace values

Can anyone please assist? I need to grab each line between the lines "HEADER" and "TRAILER" Each line contains two timestamps(Timestamp1) and (Timestamp2). I need to create two variables TIME_SUBSTRCT and TIME_ADD and then recalculate the two timestamps using this logic:... (5 Replies)
Discussion started by: vinus
5 Replies
certmonger(1)						      General Commands Manual						     certmonger(1)

NAME
getcert SYNOPSIS
getcert start-tracking [options] DESCRIPTION
Tells certmonger to monitor an already-issued certificate. Optionally, when the certificate nears expiration, use an existing key pair (or to generate one if one is not already found in the specified location), to generate a signing request using the key pair and to submit them for signing to a CA. SPECIFYING EXISTING REQUESTS
-i NAME Modify the request which has this nickname. If this option is not specified, and a tracking entry which matches the key and cer- tificate storage options which are specified already exists, that entry will be modified. Otherwise, a new tracking entry will be added. KEY AND CERTIFICATE STORAGE OPTIONS
-d DIR Use an NSS database in the specified directory for reading this certificate and, if possible, the corresponding key. -n NAME Use the certificate with this nickname, and if a private key with the same nickname or which corresponds to the certificate is available, to use it, too. Only valid with -d. -t TOKEN If the NSS database has more than one token available, use the token with this name for accessing the certificate and key. This argument only rarely needs to be specified. Only valid with -d. -f FILE Read the certificate from this file. For safety's sake, do not use the same file specified with the -k option. -k FILE Use the key stored in this file to generate a signing request for refreshing the certificate. If no such file is found when needed, generate a new key pair and store them in the file. Only valid with -f. KEY ENCRYPTION OPTIONS
-p FILE The private key files or databases are encrypted using the PIN stored in the named file as the passphrase. -P PIN The private key files or databases are encrypted using the specified PIN as the passphrase. Because command-line arguments to run- ning processes are trivially discoverable, use of this option is not recommended except for testing. TRACKING OPTIONS
-I NAME Assign the specified nickname to this task. If this option is not specified, a name will be assigned automatically. -r Attempt to obtain a new certificate from the CA when the expiration date of a certificate nears. This is the default setting. -R Don't attempt to obtain a new certificate from the CA when the expiration date of a certificate nears. If this option is specified, an expired certificate will simply stay expired. ENROLLMENT OPTIONS
-c NAME Enroll with the specified CA rather than a possible default. The name of the CA should correspond to one listed by getcert list- cas. Only useful in combination with -r. SIGNING REQUEST OPTIONS
If and when certmonger attempts to obtain a new certificate to replace the one being monitored, the values to be added to the signing request will be taken from the current certificate, unless preferred values are set using one or more of -U, -K, -E, and -D. -U EKU Add an extensionRequest for the specified extendedKeyUsage to the signing request. The EKU value is expected to be an object iden- tifier (OID). -K NAME Add an extensionRequest for a subjectAltName, with the specified Kerberos principal name as its value, to the signing request. -E EMAIL Add an extensionRequest for a subjectAltName, with the specified email address as its value, to the signing request. -D DNSNAME Add an extensionRequest for a subjectAltName, with the specified DNS name as its value, to the signing request. OTHER OPTIONS
-B command When ever the certificate is saved to the specified location, run the specified command as the client user before saving the cer- tificate. -C command When ever the certificate is saved to the specified location, run the specified command as the client user after saving the certifi- cate. -v Be verbose about errors. Normally, the details of an error received from the daemon will be suppressed if the client can make a diagnostic suggestion. BUGS
Please file tickets for any that you find at https://fedorahosted.org/certmonger/ SEE ALSO
certmonger(8) getcert(1) getcert-list(1) getcert-list-cas(1) getcert-request(1) getcert-resubmit(1) getcert-stop-tracking(1) certmonger- certmaster-submit(8) certmonger-ipa-submit(8) certmonger Manual 14 June 2012 certmonger(1)
All times are GMT -4. The time now is 08:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy