Search Results

Search: Posts Made By: wes_brooks
19,883
Posted By wes_brooks
How to determine the script is called from CRON?
Hello expert,

What I want is to determine whether the script is called from CRON or it is executed interactively?

I tried the following but no luck:

#!/bin/ksh

cronID=`pgrep -x cron`...
Showing results 1 to 1 of 1

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