Sponsored Content
Top Forums Shell Programming and Scripting Find and delete files before a job is submitted to queue Post 302420058 by quirkasaurus on Monday 10th of May 2010 12:32:39 PM
Old 05-10-2010
Code:
find /scratch/mzd/gamess-scratch -type f -name ${NAME:-safety_net}\* -exec /bin/rm {} \;

... that'll do it....
This User Gave Thanks to quirkasaurus For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to kill process while keeping the submitted job running

:confused: I have a process which was schedule to run from 8am - 6pm daily. The scripts will search & run the commands that i was predefined in the database. Ususally, there were about 6-7 jobs for each submission and each job takes about 1-2 hrs and running one by one. And, I have a cron job... (3 Replies)
Discussion started by: hk_newbie
3 Replies

2. UNIX for Dummies Questions & Answers

FTP a print job that's still in queue?

I have an HP-UX system that has remote print queues created on it. We're having trouble with the data so I stopped the queue from sending its data to the recieving server. I typed "lpstat -o<queue> " and I see two print jobs listed c_91428.1 and c_91429.1 but when I go to the /usr/spool/<queue>... (2 Replies)
Discussion started by: HVHS_CJR
2 Replies

3. UNIX for Dummies Questions & Answers

Crontab job queue

My cronjob triggers the script late by 6 minutes. /var/cron/log shows that it got triggered at the right time then where can I track, the late starting of the script. Is there some queue mechanism, some log? This happens sometimes, not daily. but it affects me, whenever it happens. Logging... (1 Reply)
Discussion started by: pksingh2
1 Replies

4. Shell Programming and Scripting

A Batch job to delete files from various directories

Hi, I have a shell script to find files older than 'X' days ($2) in directory path ($1) and delete them. Like this: my_file_remover.sh /usr/home/c 90 Now, I need to modify this script and add it in CRON, so that it checks other directories also. Like: my_file_remover.sh /usr/home/c... (3 Replies)
Discussion started by: guruparan18
3 Replies

5. UNIX for Dummies Questions & Answers

Cron job to delete files

Hi everyone! I'm sorry, I'm a total noob but would really appreciate any advice or help. I want to create a cron job that would run every hour and would look inside a few different folders. If any new files were created within those folders within the last hour they would be destroyed, but any... (2 Replies)
Discussion started by: jessn
2 Replies

6. Shell Programming and Scripting

How to delete the submitted at command

Hi I have submitted an at command to run next week . Now i want to remove the submitted at command . I dont want the job to run . Can anyone help me , with the command to remove the submitted at command . thanks in advance ... (3 Replies)
Discussion started by: rxg
3 Replies

7. UNIX for Dummies Questions & Answers

find and delete files

hi all , i want to find and interactively delete all the files having size greater than 20 bytes using "find" and other commands..... (8 Replies)
Discussion started by: sonu_pal
8 Replies

8. UNIX for Dummies Questions & Answers

problem submitting job to queue

Hi, I am trying to submit a job to a queue on a cluster. When I run the job ( python script) from the command line it runs without putting python at the start. The script imports everything from another congifuration file (.config) but when I submit to the queue it tells me there is no module... (0 Replies)
Discussion started by: i-dont-know
0 Replies

9. UNIX for Dummies Questions & Answers

Script to find the files and delete them

This is a real world problem so I think you might found this interesting. We have servers which are shared by multiple team members. Each team member has its own user id and home directory. Now with time each user starts creating files which in end caused the disk to be full. Now for creating a... (5 Replies)
Discussion started by: Rohit06
5 Replies

10. Shell Programming and Scripting

Find modify and delete files

hi every one. one of my friends has writen this script and send it to me. this script can find files that add-delete-modify and also send an alert by email i'm not catch all part of it. can anyone explain me how this work #!/bin/bash START="a.txt" END="b.txt" DIFF="c.txt" mv ${START}... (4 Replies)
Discussion started by: nimafire
4 Replies
ALDO(1) 						      General Commands Manual							   ALDO(1)

NAME
aldo - A fully console morse code trainer written in ISO C++. SYNOPSIS
aldo DESCRIPTION
Aldo is developed from scratch in ISO C++ using GNU C++ Standard Library and libao (www.xiph.org/ao). It is a morse code learning tool which provides four type of training methods: Blocks Identify blocks of random characters played in morse code. Koch Two morse characters will be played at full speed (20wpm) until you'll be able to identify at least 90 percent of them. After that, one more character will be added, and so on. File Identify played characters generated from a file. Callsign Identify random callsigns played in morse code. NOTES
The "Device" option under the keyer depends on the particular driver. The "default" setting picks the default sound device. This option may be used to pick a different soundcard than the default one. For alsa, it is "hw:<card>,<device>", where the card and device number are the particular hardware devices. The default is generally "hw:0.0". Generally 0 is the first card, 1 is the second, etc. Some sound cards may have multiple output devices, the device picks the particular one. For oss, sun, and aixs, it is the device name, like /dev/dsp. For esd, it is the host name, like "whizbang.com:555". It is not used on any other drivers. AUTHOR
This manual page was written by Giuseppe Martino <denever@users.sf.net>, for the Debian project (but may be used by others). Nov 20, 2004 ALDO(1)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy