Sponsored Content
Full Discussion: Cron Job help
Top Forums Shell Programming and Scripting Cron Job help Post 302472105 by ctsgnb on Tuesday 16th of November 2010 09:48:58 AM
Old 11-16-2010
Quote:
Originally Posted by sandeep.dwivedi
Tried running this command on anather UNIX machine
ls -t /PROCESSED/* | tail +9 | xargs rm
I get the following error message
usage:rm [-fiRr] file ...
If you want get rid off error message you can redirect the error standard output (associated to file descriptor 2) to the trash (/dev/null)
Code:
ls -t /PROCESSED/* | tail +9 | xargs rm 2>/dev/null

This User Gave Thanks to ctsgnb For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job

Hi All I am trying to run a .sh file from cron but its not performing its intended purpose, though the same sh file works fine when triggered manually.Following mail I recieve when it tries to run the script. ********************************************************* To: wlsdev05 Subject:... (16 Replies)
Discussion started by: pankajkrmishra
16 Replies

2. Shell Programming and Scripting

Cron job

Hi All , We have few scripts which uses common environment/path setting variables. Now instead of putting classpath , framework,java_home ..... etc. in all the script, can we make a file with all common settings which can be envoked by the scripts while running. If yes , say setting file is... (3 Replies)
Discussion started by: pankajkrmishra
3 Replies

3. UNIX for Dummies Questions & Answers

Cron job

Regarding Cron job, i want to execute a scriptevery 4 days once irrespective of a week or a month. Is it possible?Any help (2 Replies)
Discussion started by: santho
2 Replies

4. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

5. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

6. UNIX for Advanced & Expert Users

cron job

Hello, Can anyone help me how to set any script as cron job. I have gone through all threads but not able to get the details. Appreciate your help. I need to set test.pl to run on every Tuesday by 6am in the morning. I do not the cron file which is defined. Please help me out. ... (3 Replies)
Discussion started by: jam_prasanna
3 Replies

7. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

8. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

9. UNIX for Dummies Questions & Answers

Cron Job

How to schedule a cron job to run every other Monday. Thanks in advance. (2 Replies)
Discussion started by: ITDev01
2 Replies

10. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
GLOBUS-JOB-GET-OU(1)						  GRAM5 Commands					      GLOBUS-JOB-GET-OU(1)

NAME
globus-job-get-output - Retrieve the output and error streams from a GRAM job SYNOPSIS
globus-job-get-output [-r RESOURCE | -resource RESOURCE] [-out | -err] [-t LINES | -tail LINES] [-follow LINES | -f LINES] JOBID globus-job-get-output [-help] [-usage] [-version] [-versions] DESCRIPTION
The globus-job-get-output program retrieves the output and error streams of the job named by JOBID. By default, globus-job-get-output will retrieve all output and error data from the job and display them to its own output and error streams. Other behavior can be controlled by using command-line options. The data retrieval is implemented by submitting another job which simply displays the contents of the first job's output and error streams. By default this retrieval job is submitted to the default GRAM resource running on the same host as the job. This behavior can be controlled by specifying a particular resource manager contact string as the RESOURCE parameter to the -r or -resource option. OPTIONS
The full set of options to globus-job-get-output are: -help, -usage Display a help message to standard error and exit. -version Display the software version of the globus-job-get-output program to standard output. -version Display the software version of the globus-job-get-output program including DiRT information to standard output. -resource RESOURCE, -r RESOURCE Submit the retrieval job to the resource named by RESOURCE instead of the default GRAM service on the same host as the job contact. -out Retrieve only the standard output stream of the job. The default is to retrieve both standard output and standard error. -err Retrieve only the standard error stream of the job. The default is to retrieve both standard output and standard error. -tail LINES, -t LINES Print only the last LINES count lines of output from the data streams being retrieved. By default, the entire output and error file data is retrieved. This option can not be used along with the -f or -follow options. -follow LINES, -f LINES Print the last LINES count lines of output from the data streams being retrieved and then wait until canceled, printing any subsequent job output that occurs. By default, the entire output and error file data is retrieved. This option can not be used along with the -t or -tail options. ENVIRONMENT
If the following variables affect the execution of globus-job-get-output. X509_USER_PROXY Path to proxy credential. X509_CERT_DIR Path to trusted certificate directory. University of Chicago 03/18/2010 GLOBUS-JOB-GET-OU(1)
All times are GMT -4. The time now is 01:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy