|
帮我看看这个shell 哪里有错?
data1.shell:
#!/bin/sh
mysql -uroot -p -Didd_billing < /root/bin/upp.txt
cd /root/data
ftp -ivn 193.154.249 <<EOT
user pe pe
cd sc/data/
put upp.sql
bye
EOT
upp.txt:
SELECT concat("update testing set end_time=","'",DATE_FORMAT(effdate -INTERVAL 1 second,'%Y%m%d%H%i%s'),"'"," where carrier_id=","'",carrier,"'","and prefix=","'",prefix,"'",";" into outfile '/root/data/upp.sql' FROM fix
..不只到为什么,数据不能填到upp.sql 里?/
不知道哪里有错
有显示Transfer complete. |
|