linux script to automate ftp operation

后端 未结 4 1692
梦谈多话
梦谈多话 2020-12-20 08:13

I need to transfer a file from my linux server to a FTP server.

My shell script is :

    #! /bin/ksh

    HOST=\'my_ip\'
    USER=\'userid\'
    PASS         


        
4条回答
  •  时光取名叫无心
    2020-12-20 08:59

    If you are root or have admin privileges then you shouldn't need to sudo your way into making a directory. It will be best to run remote commands without sudo just in case a malicious code piggybacks your script

提交回复
热议问题