Home: Perl Programming Help: Intermediate:
Know how was the program launched



zatlas1
User

Jun 14, 2018, 10:49 AM


Views: 1388
Know how was the program launched

Is there a way in a perl script to know whether it was launched in command line or via some forking mechanism, such as backtick?
Thank you
ZA


FishMonger
Veteran / Moderator

Jun 14, 2018, 3:06 PM


Views: 1384
Re: [zatlas1] Know how was the program launched

What platform are you on?

Can you provide more details on why you need to do this?


zatlas1
User

Jun 15, 2018, 6:12 AM


Views: 1378
Re: [FishMonger] Know how was the program launched

It is a Solaris 10 on SPARC hardware.
However, I decided that it does not matter. The process should assume that it is a part of multi-threaded environment regardless, so it could support both multi and single threaded environments seamlessly.

Thank you
ZA