Re: Bash Script -> MySQL

Admir Trakic <[email protected]>
Newsgroups gmane.linux.debian.user.danish
Message-ID <[email protected]>
BTW: Hvis du fotrækker at ikke angive mysql_uname/pass via kommandline
opret en ~/.my.cnf (0600) så dit kommand bliver forkortet således:

echo sql | mysql database

/A

On 10/23/05, Peter Makholm <[email protected]> wrote:
> Lars <[email protected]> writes:
>
> > Jeg er generelt ikke den helt store scripter, og slet ikke når denne
> > linie skal køres automatisk...
> > INSERT INTO mailboxes (username,pwd) VALUES('$dir "@sos.net"','<kodeord>');
>
> echo blablabla | mysql -ubruger -phemmeligt database
>
> udfører sql-kommandoen 'blablabla' i databasen 'database' som brugeren
> 'bruger' med kodeordet 'hemmeligt'.
>
>
> --
>  Peter Makholm     |                The four letter word beginning with L?
>  [email protected] |                It's life, love, libc or lisp
>  http://hacking.dk |                    --  Depending on you point of view
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
>
>


--
Admir Trakic
Debian Gnu/Linux user #99405
http://www.trakic.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.