Sponsored Content
Top Forums Shell Programming and Scripting Need help to create a script to delete the files Post 302881402 by YNRao24 on Sunday 29th of December 2013 02:40:08 AM
Old 12-29-2013
Need help to create a script to delete the files

Hi All,



I want to delete all core* files in below file system in Unix server.

File system: /usr/sap/P01/JC00/j2ee/cluster/server0

I want to setup a cron job every ten minutes to delete the core *files

Thanks

N Rao
Moderator's Comments:
Mod Comment This thread duplicates another thread with the same title: Need help to create a script to delete the files. This thread is, therefore, closed.

Last edited by Don Cragun; 12-29-2013 at 04:24 AM.. Reason: Note duplicate thread.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create a script that executes when a user attempts to delete history logs

Hi, I have a linux redhat 9 server and I am concerned about the security on that server. I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history. I was thinking about... (4 Replies)
Discussion started by: mishkamima
4 Replies

2. Shell Programming and Scripting

Require script to create two files

Hi folks, I have a input.file with the following contents:- flor geor enta vpal domi pegl cars mted four rose annc gabi ward dalv elph beac (8 Replies)
Discussion started by: mithalr
8 Replies

3. Shell Programming and Scripting

perl script to check if empty files are created and delete them and run a shell script

I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies

4. Shell Programming and Scripting

Script to create files

Requirement:- SQLs select name from v$datafile; select name from v$controlfile; select name from v$tempfile; select MEMBER from v$logfile; These sqls has to run in one script and o/p of each sql has to write in seperate files.But the o/p is like if we issue select name from... (2 Replies)
Discussion started by: Sanal
2 Replies

5. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies

6. Shell Programming and Scripting

How to create a script to compare 2 files?

I have two files File1 and File2 will contains same number of fields. The rows in File1 can be found anywhere in File2. If any rows from File1 doesn't match to File2 then write those records to a File1 log file. If any rows from File2 doesn't match to File1 then write those records to a File2... (6 Replies)
Discussion started by: ranjanp
6 Replies

7. HP-UX

Need help to create a script to delete the files

Hi All, I want to delete all core* files in below file system in Unix server. File system: /usr/sap/P01/JC00/j2ee/cluster/server0 I want to setup a cron job every ten minutes to delete the core *files Thanks N Rao (2 Replies)
Discussion started by: YNRao24
2 Replies

8. Shell Programming and Scripting

How to create or convert to pdf files from csv files using shell script?

Hi, Can anyone help me how to convert a .csv file to a .pdf file using shell script Thanks (2 Replies)
Discussion started by: ssk250
2 Replies

9. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

10. Shell Programming and Scripting

Script for User Management (Create, Delete, Disable...etc)

Hi Everyone, Am very new to shell scripting and would need help on a script that needs to be executed on a central server which takes IP, Flavor (AIX, Solaris, RHEL) as inputs and create a new account/user, update the existing users settings, delete or disable the users/accounts in those servers... (3 Replies)
Discussion started by: VenkatPVS
3 Replies
UUQ(1C) 																   UUQ(1C)

NAME
uuq - examine or manipulate the uucp queue SYNOPSIS
uuq [ -l ] [ -h ] [ -ssystem ] [ -uuser ] [ -djobno ] [ -rsdir ] [ -bbaud ] DESCRIPTION
Uuq is used to examine (and possibly delete) entries in the uucp queue. When listing jobs, uuq uses a format reminiscent of ls. For the long format, information for each job listed includes job number, number of files to transfer, user who spooled the job, number of bytes to send, type of command requested (S for sending files, R for receiving files, X for remote uucp), and file or command desired. Several options are available: -h Print only the summary lines for each system. Summary lines give system name, number of jobs for the system, and total number of bytes to send. -l Specifies a long format listing. The default is to list only the job numbers sorted across the page. -ssystem Limit output to jobs for systems whose system names begin with system. -uuser Limit output to jobs for users whose login names begin with user. -djobno Delete job number jobno (as obtained from a previous uuq command) from the uucp queue. Only the UUCP Administrator is permitted to delete jobs. -rsdir Look for files in the spooling directory sdir instead of the default directory. -bbaud Use baud to compute the transfer time instead of the default 1200 baud. FILES
/usr/spool/uucp/ Default spool directory /usr/spool/uucp/C./C.* Control files /usr/spool/uucp/Dhostname./D.* Outgoing data files /usr/spool/uucp/X./X.* Outgoing execution files SEE ALSO
uucp(1C), uux(1C), uulog(1C), uusnap(8C) BUGS
No information is available on work requested by the remote machine. The user who requests a remote uucp command is unknown. Uuq -l can be horrendously slow. AUTHOR
Lou Salkind, New York University 4.3 Berkeley Distribution April 24, 1986 UUQ(1C)
All times are GMT -4. The time now is 11:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy