Upload / Download file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Upload / Download file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Upload / Download file  
Andy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-07-04 12:49 PM

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.





[ Post a follow-up to this message ]



    Re: Upload / Download file  
Laurenz Albe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-07-04 12:49 PM

Andy <yoeyyo@kittymail.com> wrote:
> 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

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





[ Post a follow-up to this message ]



    Re: Upload / Download file  
Kevin Collins


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-07-04 10:49 PM

In article <76f13445.0410070218.73253a7@posting.google.com>, Andy wrote:
> 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

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 us
ed
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'
.

> 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.

Kevin





[ Post a follow-up to this message ]



    Re: Upload / Download file  
c0ldbyte


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 01:50 AM

On 2004-10-07, Kevin Collins <spamtotrash@toomuchfiction.com> wrote:
> In article <76f13445.0410070218.73253a7@posting.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 kermi
t'.
> 
>
> Kevin
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 subsyst
em
for ssh. Link: http://www.columbia.edu/kermit/ along with all the nice scrip
t
collections they have there as well should set you up pretty well.

-- c0ldbyte





[ Post a follow-up to this message ]



    Re: Upload / Download file  
Birger Blixt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 10:51 PM

On 2004-10-07 12:18, Andy wrote:
> 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.

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 u
se 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:18 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register