do shell script / MySQL oddness
do shell script / MySQL oddness
- Subject: do shell script / MySQL oddness
- From: Rob Stott <email@hidden>
- Date: Mon, 22 Oct 2007 14:56:38 +0100
Hi all,
I'm having some weirdness I don't understand and was hoping one of you could point me in the right direction. When i run the following from the command line, it works fine;
mysql -h 172.11.11.111 -umyusername -pmypassword -e 'select * from bop.specs'
(Note. ip, user and pass have been changed to be protect the innocent)
However, if I do this in AppleScript;
set theShellScript to "mysql -h 172.11.11.111 -umyusername -pmypassword -e 'select * from bop.specs'" do shell script theShellScript
...which I'd expect to do the same thing (but clearly I'm wrong!) then I get the following error from AppleScript;
sh: line 1: mysql: command not found
Can anyone tell me where I'm going wrong?
Thanks Rob
Important: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of the communication is strictly prohibited. If you have received this communication in error, please notify the writer immediately by telephone and return the original message via postal service to the writer's attention at the above address. Thank you.
Watt Gilchrist Limited. Albion Mills, Albion Road. Bradford, BD10 9TQ
Registered in England
873405
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden