Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...