Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Sshexec task, running commands using 'sudo '

Sshexec task, running commands using 'sudo '

2005-06-14       - By Anderson, Rob (Global Trade)
Reply:     1     2     3     4     5     6     7  

Have your sysadmin configure sudo to not require a password for the command you
are trying to run. If this task you fall on you, read the sudo manual for
details on how to set that up.

-Rob A

> -----Original Message-----
> From: Rich Harris [mailto:rharris@(protected)]
> Sent: Tuesday, June 14, 2005 4:40 PM
> To: Ant Users List
> Subject: RE: Sshexec task, running commands using 'sudo'
>
>
> An addendum...I noticed that when running 'sudo' commands
> manually I get
> prompted for my password the first time I use it. That may be
> where it's
> hanging. The uname/pass auth. only happens upon the initial
> ssh connect
> using the sshexec and doesn't carry over through the session
> if you need
> to run sudo. I would assume that since 'sudo' may be something widely
> used for administrative purposes there may be solution or fix for
> this....at least I hope so. :-)
>
> Any help is appreciated.
> -Rich
>
>
> _____________________________________
> Rich Harris
> Release/Configuration Engineer
> rharris@(protected)
> 650-616-6866
>
> Shopping.com(tm), Inc.
> Find. Compare. Buy.
> www.shopping.com
>
>
> -----Original Message-----
> From: Rich Harris [mailto:rharris@(protected)]
> Sent: Tuesday, June 14, 2005 4:28 PM
> To: Ant Users List
> Subject: Sshexec task, running commands using 'sudo'
>
> I'm having an issue where if I need to run 'sudo' before running a
> command during my ssh session, it just hangs ant until I escape out of
> ANT. Has anyone else had this problem? I'm open to ideas as
> to why this
> is happening or how I can get around it while staying within the ANT
> environment.
>
> Thanks,
> Rich
>
> _____________________________________
> Rich Harris
> Release/Configuration Engineer
> rharris@(protected)
> 650-616-6866
>
> Shopping.com(tm), Inc.
> Find. Compare. Buy.
> www.shopping.com <http://www.shopping.com/>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.