Is there a way to programmatically determine if my current script is running in the background or foreground? My script is either run in the foreground or background, and I need to know which it is to prompt or don't prompt the user for information.
Thanks in advance!!
Thanks in advance!!