Operating System - HP-UX
1829118 Members
2035 Online
109986 Solutions
New Discussion

How to import a text file from Windows to a HP-UX system ?

 
cpchan
Occasional Advisor

How to import a text file from Windows to a HP-UX system ?

How to import a text file from Windows to a HP-UX system ?
9 REPLIES 9
Steven Schweda
Honored Contributor

Re: How to import a text file from Windows to a HP-UX system ?

Dozens of ways, if not hundreds. Were you
thinking of carrying a disk, tape, flash
EEPROM (punched cards or tape, ...) between
these systems, or are they connected by some
kind of data-carrying network?

If "network", were you looking for a
procedure to run on the Windows system or on
the HP-UX system? Manual or automatic?

Did you have any network protocol in mind,
like FTP, Samba, rcp, scp, sftp, ...?

The phrase "text file" does not completely
describe the data format.

This is really an amazingly vague question,
which makes it hard to supply a useful
answer.
cpchan
Occasional Advisor

Re: How to import a text file from Windows to a HP-UX system ?

I just want to send a text file from my Windows XP laptop to our HP-UX system, but I got the following errors :

UNIX_dev> ftp
ftp: connect: Connection refused

UNIX_dev> ftp
ftp> get c:\101.txt
Not connected.

I don't want to use VI to type a script file on our Dev HP-UX system again.
Please give me some ideals, thanks.
Prashanth Waugh
Esteemed Contributor

Re: How to import a text file from Windows to a HP-UX system ?

Hi,
Hi
open the command prompt from windows.Suppose i m having tty.txt file in c: drive and i want this on unix server then

do the below procedure
1) cd c:
2)dir
check ur file in c drive
3)ftp
it will ask user name and password after that you will ftp prompt
4)ftp> cd /home/atul
here go to ur own unix directory on unix server
5)put tty.txt
6)dir
check whethet its copied or not.
7)ftp>bye
it will close the ftp session

Regards
Atul
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: How to import a text file from Windows to a HP-UX system ?

Hello cpchan,

What happen. u did the ftp successfully or not

Regards
Atul
For success, attitude is equally as important as ability
Hein van den Heuvel
Honored Contributor

Re: How to import a text file from Windows to a HP-UX system ?

Most/many desktops do NOT have an FTP server enabled. Most/many Unix systems do. So just try the other way around... On the windoze box START... RUN... CMD --> FTP
FTP> ASCII
FTP> PUT somefile.

If all you need is a few KB of text, then a ^A ^C (select-all, copy) from notepad or similar and unix> cat > x.txt .. 'paste' is often a nice quick & dirty method.

For frequent transfers you may want a GUI FTP client and/or check out NFS client/server setup.

And if you need further help, please do add what you want, what you tried, what went wrong. Wee all like helping here, but only a few amongst us posses psychic powers.

Cheers,
Hein

Vishu
Trusted Contributor

Re: How to import a text file from Windows to a HP-UX system ?

Hi,
FTP protocol is the best way to get or put some file from windows to HPUX. do the following :-
go to the specific path where your file resides. consider it is c:\>
c:\> ftp
give username and password-----
ftp> bin
go to desired directory path in HPUX---
ftp> cd
ftp> put

your text file will be transferred to the desired location of HPUX server.

Rgds
Vishu
cpchan
Occasional Advisor

Re: How to import a text file from Windows to a HP-UX system ?

Yes, I got it.
Thanks a lot.
Prashanth Waugh
Esteemed Contributor

Re: How to import a text file from Windows to a HP-UX system ?

Hi Cpchan,

Assign the points as per ITRC forum rule

Reagrds
Atul
For success, attitude is equally as important as ability
Tingli
Esteemed Contributor

Re: How to import a text file from Windows to a HP-UX system ?

I think in Vishu's answer need to be corrected a little. That the line:
ftp> bin need to be modified to:
ftp > ascii.
Otherwise, there will be a ^M in the end of each line which won't be seen unless vi is used. The ^M will cause some issues such as a shell script won't run.

Also, sometimes in the unix, ftp is turned off for security reasons. Then scp or winscp can be used for file transfer.