Results 1 to 1 of 1
when i m executing ths cmd on prompt its running quite well but when we write these same commands in script they are giving errors to us.
mysql
use db_name
...
- 12-20-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 6
Shell Scripting
when i m executing ths cmd on prompt its running quite well but when we write these same commands in script they are giving errors to us.
mysql
use db_name
select * from table_name \T file_name
exit
mutt -a file_name -s " Subject " recivers_address </dev/null
first two commands are running well even in the srcipt but rest of them are not working in the script.
this script is expected to export a table from database into an file and then mail that file as an attachment to set of users.Last edited by aman_m03; 12-21-2010 at 03:52 AM.


Reply With Quote