ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Peyyeti" <ro...@translogicsys.com>
Subject Re: Help with execon and mysql
Date Mon, 09 Jul 2001 05:27:01 GMT
> and then execute shell script with one parameter. The other way is to use
> execon on /bin/sh executable and supply -c option so your commanline looks
> like
>
> /bin/sh -c mysql -u rtest -h helix -P 3306 -prtest -D rtest < ...

I tried doing this, but when I execute this with sh:
[slogic@helix slogic]$ /bin/sh -c mysql -u rtest -h helix -P 3306 -prtest
rtest < /var/www/test/data/slogicdatadump.sql
ERROR 1045: Access denied for user: 'slogic@localhost' (Using password: NO)

Where as without sh:
ERROR 1045: Access denied for user: 'rtest@helix' (Using password: YES)

Why is the difference? Thanks for the help!

...Rohit



Mime
View raw message