You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Telang, Nandan" <te...@amazon.com> on 2005/10/21 19:49:15 UTC
Exec with getlogin
Hi
I'm trying to call a perl script with the Ant exec task.. The script tries to get the userid by using getlogin() (Unix) When the script is run directly, it returns my loginname, however when run through ant, it returns undef...
Do I have to pass any env var to exec for getlogin to work ?
Thanks,
-Nandan
Re: Exec with getlogin
Posted by Juergen Hermann <jh...@web.de>.
On Fri, 21 Oct 2005 10:49:15 -0700, Telang, Nandan wrote:
>I'm trying to call a perl script with the Ant exec task.. The script tries to
get the userid by using getlogin() (Unix) When the script is run directly, it
returns my loginname, however when run through ant, it returns undef...
hmm, what happened to ${user.name}?
Ciao, Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org