Search Results

Search: Posts Made By: capitanui
1,672
Posted By capitanui
ps - ef - lists processes grep test - print...
ps - ef - lists processes
grep test - print output lines that contain "test"
grep -v grep - excludes the "grep test" process you ran earlier from the list
1,672
Posted By capitanui
Your script should look something like this : ...
Your script should look something like this :

#!/bin/bash

#Get the number of processes containing etl running
VAR=`ps -ef | grep 'etl' | grep -v grep | wc -l`

#Verify if VAR >= 1
if [ $VAR...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy