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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run executable in background from script?

Status
Not open for further replies.

CJason

Programmer
Oct 13, 2004
223
US
I want to execute an executable from within a perl script, and have that executable continue to run in the background...even if my own process dies. In UNIX, I think this is done, for example, like this:
Code:
$ nohup exe &
Any good ideas on how to do this from within perl? The main goal is to get a solution that is portable to several different platforms...if that's possible. So, backticking or system call may not be the best solution, I'm thinking.

Thanks in advance!!!
 
Let me just mention...if it's not really that possible to make it totally portable, I need it to for sure work on Windows.

Thanks again!
 
hmmmm, now that I think about it, maybe I should be looking at starting a Windows Service??? Any advice in this area?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top