Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Delete Unix/Linux file at a specific time in future. Post 302700723 by abhi7514 on Friday 14th of September 2012 05:02:47 AM
Old 09-14-2012
Question Delete Unix/Linux file at a specific time in future.

Hi,
I was wondering if there is a command to delete a file in the future.

For example: If I create a file named unix.lst using the vi editor, but after I create it, what command will be suitable to delete "unix" files from the system at 13:40 military time with no log file.

I was going to use : find /root -name unix -exec rm {} \;
but I believe that it wont really work the way I want it to.
I would really appreciate your take on this.
Thanks in advance
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

is there any command to delete a file which can be recovered in future.

hi all, could u plz let me know any alternative command for rm command to recover a file deleted in future. thanks --bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

2. UNIX for Advanced & Expert Users

How to delete specific lines at the same time

Dear All I have a pattern which look like this: 2 20080312_10:55:35.800 Spain-Telefonica ISC 9 IAM 927535957 34670505334 f 275 COT b 700 ACM b 6577 CPG b 10726 ANM b 202195 REL f 202307 RLC :COMMA: NCI=15,FCI=2101,CPC=0A,TMR=00,USI,OFI=00: :COMMB: BCI=0214,OBI=01,ACT: :RELCAUSE:10: This... (1 Reply)
Discussion started by: zanetti321
1 Replies

3. Shell Programming and Scripting

Perl script that checks against Future time

Ok, so this may be an unusual request. But I have a certificate that expires sometime in may of 2011. Now, i have to monitor this certificate and alert when the current time is within 30 days of may 20, 2011. #!/usr/bin/perl # use Time::Local; # $sec=59; $min=59; $hours=23; $day=31;... (3 Replies)
Discussion started by: SkySmart
3 Replies

4. UNIX for Dummies Questions & Answers

ls -ltr for a future date/time stamp file

Hi When i do ls -ltr <file1> then it shows me the date and time of the file if - for whatever reason file has future date/time stamp then ls -ltr is not showing the time, it just shows only date part ... even if time is ahead by 2 hr than current time. suppose a file was copied from INDIA... (3 Replies)
Discussion started by: reldb
3 Replies

5. UNIX for Dummies Questions & Answers

Quick UNIX command to display specific lines in the middle of a file from/to specific word

This could be a really dummy question. I have a log text file. What unix command to extract line from specific string to another specific string. Is it something similar to?: more +/"string" file_name Thanks (4 Replies)
Discussion started by: aku
4 Replies

6. Shell Programming and Scripting

Count specific character of a file in each line and delete this character in a specific position

I will appreciate if you help me here in this script in Solaris Enviroment. Scenario: i have 2 files : 1) /tmp/TRANSACTIONS_DAILY_20180730.txt: 201807300000000004 201807300000000005 201807300000000006 201807300000000007 201807300000000008 2)... (10 Replies)
Discussion started by: teokon90
10 Replies
create object(1m)														 create object(1m)

NAME
create object - Creates an object entry SYNOPSIS
cdscp create object object-name [CDS_Class = class-name CDS_ClassVersion = value] ARGUMENTS
The full name of the object entry. The class of object entry being created. You can specify an application-defined class name. A class is specified as a simple name limited to 31 characters. The version of the class assigned to the object entry. Specify the value as v.n, where v defines the major release number and n specifies the minor version number. Specifying a class version is useful as it allows the definition of a class to evolve as the application is revised. DESCRIPTION
The create object command creates an object entry. This task is usually done through a client application. Privilege Required You must have insert permission to the parent directory. NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE. EXAMPLE
The following command creates an object entry named /.:/sales/east/floor1cp. The object entry describes a color printer on the first floor of a company's eastern sales office. cdscp> create object /.:/sales/east/floor1cp CDS_Class = printer CDS_ClassVersion = 1.0 RELATED INFORMATION
Commands: delete object(1m), list object(1m), set object(1m), show object(1m) create object(1m)
All times are GMT -4. The time now is 05:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy