|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: How do I test if my PERL script was run using a login vs a non-login shellby Anonymous Monk |
| on May 23, 2012 at 04:04 UTC ( #971941=note: print w/ replies, xml ) | Need Help?? |
|
The difference is that this login shell will be installed on 600 odd servers with different operating systems and I don't want to manage compiling C code across different operating systems. :) You'll notice my question came before my suggestion, it wasn't about my suggestion Let me elaborate, what is the difference between using a login vs a non-login shell? What effect does it have upon the execution of a program? Does it set some variables? I doubt the only effect is a dash in ARGV You could probably examine some perlvar or some POSIX call, but you'd have to know more about what su does -- I don't know too much about su.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||