How to upload files via FTP/HTTP using cronjob?

_at_Alexa
Date: 07/31/04


Date: Sat, 31 Jul 2004 03:26:37 GMT

I need to upload files into several servers using a cronjob or some shell
script. If I type ftp ftpserver then it will run into the subshell of FTP
which I don't know how to control from unix shell.

Will this shell script work?

ftp ftpserver
username\r
password\r
as
put somefile.txt



Relevant Pages

  • Re: How to upload files via FTP/HTTP using cronjob?
    ... If I type ftp ftpserver then it will run into the subshell of FTP ... >> which I don't know how to control from unix shell. ... >> Will this shell script work? ... No. wget is for downloads only. ...
    (comp.unix.shell)
  • Re: How to upload files via FTP/HTTP using cronjob?
    ... If I type ftp ftpserver then it will run into the subshell of ... >> which I don't know how to control from unix shell. ... >> Will this shell script work? ... use netrc for upload. ...
    (comp.unix.shell)
  • Re: How to upload files via FTP/HTTP using cronjob?
    ... If I type ftp ftpserver then it will run into the subshell of FTP ... > which I don't know how to control from unix shell. ... > Will this shell script work? ...
    (comp.unix.shell)
  • Re: Executing a command in sub-shell
    ... > script and only 1 line of output, ... which is expanded by the shell where it has not been set. ... > expand it dynamically in the subshell, it needs to be quoted in the here ... > its parent shell, so you're out of luck there. ...
    (comp.unix.shell)
  • Re: How can I get the value of a variable from within awk script into shell?
    ... I have to write a bash-shell script to process a file. ... I use in this shell script these awk ... This is more a shell problem than an awk problem. ... in a subshell, and this seems to be your case. ...
    (comp.lang.awk)