[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Unix: How do I automatically find jobs starting with "x" that are older than Y days?

Asked by sebastianrs in Linux Programming, Unix Systems Programming, Unix Networking

Tags: unix, linux, ssh, ps aux, delete jobs

The idea is to write a script that will parse a number of servers from a CSV file and then log into each of these servers via SSH. The script is then supposed to find jobs that are older than Y days and begin with "x".

Up until now, we logged into each server and ran the command "ps aux | grep o2" to find jobs.

How would I go about writing this script? In the end, we want to either run this script manually or through cron later on.
[+][-]10/28/09 04:59 AM, ID: 25682229Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 05:06 AM, ID: 25682268Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 09:13 AM, ID: 25684857Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625