On Fri, Feb 16, 2001 at 02:35:20PM +0300, áÆÁÎÁÓØÅ× ç.ì. wrote:
>
> The test script is a command that must place test value into a column
> in the table. Syntaxis - ./test <placed-value>. Text of script:
>
> #! /bin/bash
> /usr/bin/mysql --user=**** --password=**** --host=localhost
> --port=3306 --execute='INSERT INTO TableName SET TextField='$1''
> DatabaseName
>
I think you're having some problems with shell quoting. Try:
/usr/bin/mysql --user=**** --password=**** --host=localhost
--port=3306 --execute="INSERT INTO TableName SET TextField='$1'"
DatabaseName
or:
/usr/bin/mysql --user=**** --password=**** --host=localhost
--port=3306 "--execute=INSERT INTO TableName SET TextField='$1'"
DatabaseName
Regards,
Fred.
--
Fred van Engen XO Communications B.V.
email: [EMAIL PROTECTED] Televisieweg 2
tel: +31 36 5462400 1322 AC Almere
fax: +31 36 5462424 The Netherlands
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php