yangkai9999 Posted February 26, 2010 Share Posted February 26, 2010 Hello,I can run the command from terminal say:mysql -u abc -p12345678 < myscrip1.txtand thenmysql -u abc -p12345678 < myscrip2.txtthe question is: if I save the command as a file, how can I run it at linux terminal?thanks, Link to comment Share on other sites More sharing options...
Synook Posted February 27, 2010 Share Posted February 27, 2010 You can write a shell script. http://www.freeos.com/guides/lsst/ch02sec01.htmlYou may also need to modify the shebang (the very first line of the script) to indicate that you want to use bash: #!/bin/bash Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.