[SLUG] Bash Scripts

Jonathan Worthington jonathan at jwcs.net
Sun Apr 20 22:53:01 BST 2003


Hi,

>              cd /home/feather
>              ftp 'username'@'RemoteIpAddress'
>
>      # manual entry of Password and file transfer required, haven't #
>      # worked out how to write this into the script yet, i can           #
>      # do it in a Windows script file but not Linux!!
I think it will log in properly if you do this:-

ftp username:password at IPAddress

Notice username and password seperated by a colon.  As for sending commands,
I think you pipe or redirect them into it.  Maybe like if the commands were
in the file ftpcommands you might do:-

cat ftpcommands | ftp username:password at IPAddress

Might work, might not.  As alwasy, I reserve the right to be completely
wrong.  :-)

Cya,

Jonathan





More information about the Scarborough mailing list