-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14-Nov-2002/18:33 +0100, cana rich <[EMAIL PROTECTED]> wrote:
>How can i take back or send file automatically (script?) from a distant
>machine?

The basic FTP client that ships with all Linux and BSD distros will accept
FTP commands on STDIN (piped or redirected in). Put all the commands in a
script file like this:

#
# myftpscript: Automatically upload a file.
#
open FTPSERVERNAME
user MYUSERNAME
pass MYPASSWORD
lcd LOCALDIRECTORY
cd REMOTEDIRECTORY
binary
put FILENAME
quit
# End of script


Then at a shell prompt, use the command:   ftp < myftpscript


Tony
- -- 
Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@;pobox.com%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <mailto:agreene@;pobox.com> 0x6C94239D

iD8DBQE91JvqpCpg3WyUI50RAgEWAKDZ/tscynMNEkmWDVgSXfBc6EDycACeMu3l
hCipqkUzMUDD32ZIEIVo1uo=
=L0KD
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to