liunx 里面运行shell脚本没有结果,,求大神指教
#!/bin/bashcd/usr/local/sbinPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/lo...
#!/bin/bash
cd /usr/local/sbin
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo -e "cd /var/www/html/drupal \n";
echo -e "drush sql-dump > 1605.sql \n";
echo -e "scp 1605.sql root@192.168.0.13:/var/www/html/drupal1 \n";
echo -e "ssh root@192.168.0.13 \n";
echo -e "cd /var/www/html/drupal \n";
echo -e "drush sql-cli < 1605.sql \n"; 展开
cd /usr/local/sbin
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo -e "cd /var/www/html/drupal \n";
echo -e "drush sql-dump > 1605.sql \n";
echo -e "scp 1605.sql root@192.168.0.13:/var/www/html/drupal1 \n";
echo -e "ssh root@192.168.0.13 \n";
echo -e "cd /var/www/html/drupal \n";
echo -e "drush sql-cli < 1605.sql \n"; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询