Re: Bash Script -> MySQL

Peter Makholm <[email protected]>
Newsgroups gmane.linux.debian.user.danish
Organization hacking.dk - Doing fun stuff with open source
Message-ID <[email protected]>
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]
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.