Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I want to tranfer or copy a file from one Linux server to another Linux server using a shell script. Can anyone help?...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    3

    Exclamation shell script for ftp

    Hi,
    I want to tranfer or copy a file from one Linux server
    to another Linux server using a shell script.
    Can anyone help?

  2. #2
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    A quick google of bash scripting and a look at the sftp man page should give you a good head start.

    unless there are complications im unaware of, its as simple as writing the sftp commands you want automated into a bash script.
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by rudie_rage View Post
    A quick google of bash scripting and a look at the sftp man page should give you a good head start.

    unless there are complications im unaware of, its as simple as writing the sftp commands you want automated into a bash script.
    ok its fine.
    but sftp is asking password and IP address..
    with out these can we transfer file trough internet...?
    is there any possible way?
    i tried with socket programming...
    but it fails at other end(other machine)
    coz..
    i am using "rcp -p " command to copy of my file in other system.. using "sip" programming ..please make my correct..

    thank you in advance.
    "Relationships are built on trust and communication"

  4. #4
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    Quote Originally Posted by munna_dude View Post
    ok its fine.
    but sftp is asking password and IP address..
    with out these can we transfer file trough internet...?
    that's most probably because you have not set them up using keys.


    For examples of using automated ftp, check out this page

  5. #5
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by ghostdog74 View Post
    that's most probably because you have not set them up using keys.


    For examples of using automated ftp, check out this page
    some example softwares are there ,
    they cant ask any password and Ip address..
    like one of the voip phone...
    i wud like to do this way.
    "Relationships are built on trust and communication"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...