Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if running in background

Status
Not open for further replies.

CJason

Programmer
Oct 13, 2004
223
US
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!!
 
I FOUND IT!!! Use the IO::Interactive module!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top