> 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