|
Home > Archive > Unix administration > October 2004 > Upload / Download file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
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.
| |
| Laurenz Albe 2004-10-07, 7:49 am |
| 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
| |
| Kevin Collins 2004-10-07, 5: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 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'.
> 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
| |
| c0ldbyte 2004-10-17, 8:50 pm |
| 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 kermit'.
>
>
> 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 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
| |
| Birger Blixt 2004-10-19, 5: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 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
|
|
|
|
|