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
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