Professional Web Applications Themes

Upload / Download file - Linux / Unix Administration

I run UX 11 and the user use the Reflection/Netterm emulator , to telnet to the unix server . In Reflection , user can use the proprietary protocol "unxlink" to upload/download files between dos and unix , but netterm don't support "unxlink" , could suggest what protocol can use for upload/download files ? I tried zmodem can download but can't upload . thx. the ftp is good but I don't want the user interactive to login the server and input the data , I want the system can process the upload automatically , just like use zmodem / kernel etc. ...

  1. #1

    Default Upload / Download file

    I run UX 11 and the user use the Reflection/Netterm emulator , to
    telnet to the unix server . In Reflection , user can use the
    proprietary protocol "unxlink" to upload/download files between dos
    and unix , but netterm don't support "unxlink" , could suggest what
    protocol can use for upload/download files ? I tried zmodem can
    download but can't upload . thx.

    the ftp is good but I don't want the user interactive to login the
    server and input the data , I want the system can process the upload
    automatically , just like use zmodem / kernel etc.

    example :
    #sz abc.txt

    then the abc.txt will download from the shell to dos and no need to
    input anything and ask for login , as I will run it by program , so I
    can't use ftp .
    could suggest what is the good solution ? thx.
    Andy Guest

  2. #2

    Default Re: Upload / Download file

    Andy <com> wrote: 

    I don't know if that is what you are looking for, but what about getting
    ncftp and giving the user just the 'ncftpput' and 'ncftpget' executables?
    You could even wrap them in a shell script if the host is always the same.

    Yours,
    Laurenz Albe
    Laurenz Guest

  3. #3

    Default Re: Upload / Download file

    In article <google.com>, Andy wrote: 

    You use 'sz' to send and 'rz' to receive...

    I haven't used Reflection in a long time, but I know this works because I used
    to do the same thing:

    Reflection -> HP-UX with zmodem
    HP-UX -> Reflection with zmodem

    You'll want to investigate kermit in conjunction with zmodem... 'man kermit'.
     

    Kevin
    Kevin Guest

  4. #4

    Default Re: Upload / Download file

    On 2004-10-07, Kevin Collins <com> wrote: 
    >
    > You use 'sz' to send and 'rz' to receive...
    >
    > I haven't used Reflection in a long time, but I know this works because I used
    > to do the same thing:
    >
    > Reflection -> HP-UX with zmodem
    > HP-UX -> Reflection with zmodem
    >
    > You'll want to investigate kermit in conjunction with zmodem... 'man kermit'.

    >
    > Kevin[/ref]
    You could also setup a secure kermit-sshsub through sshd on your systems
    and have uploads taken care of and proccesed by scripts to do whatever you
    want to do with them. Kermit is a pretty scriptable program and nice subsystem
    for ssh. Link: http://www.columbia.edu/kermit/ along with all the nice script
    collections they have there as well should set you up pretty well.

    -- c0ldbyte
    c0ldbyte Guest

  5. #5

    Default Re: Upload / Download file

    On 2004-10-07 12:18, Andy wrote: 

    Just create a file .netrc

    Then add a line:
    machine <host> login <login> password <password>

    where <host>,<login>,<password> is replaced with your host,login,password.

    Then protect the file for reading/writing by others, or ftp will refuse to use it.
    chmod go-rw .netrc

    Now you can do ftp <host> and don't need to login.

    in a script:

    ftp <host> << EOF
    cd somewhere
    lcd somewhere
    put something
    quit
    EOF

    Or you can add a macro in .netrc
    macdef sendit
    cd somewhere
    lcd somewhere
    put something
    quit
    <empty line>

    and then do
    echo \$sendit | ftp <host>

    If you do a macro with name init, it will run by default.

    /bb
    Birger Guest

Similar Threads

  1. File upload/Download/Remove/Progress
    By ThinkFlash in forum Macromedia Flash Data Integration
    Replies: 0
    Last Post: March 18th, 07:42 AM
  2. Replies: 2
    Last Post: July 29th, 11:41 AM
  3. Upload/Download Files on Network File Server
    By Matt Hamilton in forum ASP.NET Security
    Replies: 1
    Last Post: November 19th, 03:52 PM
  4. File Upload and DownLoad
    By Karuppasamy in forum ASP.NET Web Services
    Replies: 4
    Last Post: February 7th, 11:28 AM
  5. File upload/download - help appreciated !!!
    By Fredrik/Sweden in forum ASP Database
    Replies: 1
    Last Post: October 12th, 04:24 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139