1834838 Members
3178 Online
110070 Solutions
New Discussion

Re: Urgent ...help

 
Kenn Chen
Advisor

Urgent ...help

How can I ask the HP-UX to get a file from a PC (NT/Window98) and save into /tmp directory.
Use script or how ? any idea pls.....
Cyber Zen
10 REPLIES 10
Steven Sim Kok Leong
Honored Contributor

Re: Urgent ...help

Hi,

I can think of the following ways:

1) Run an FTP server on Win98 PC. Run a cron-job ftp script from your Unix system.

2) Run an FTP server on your Unix system. Run an at-job ftp script from your Win98 PC.

3) Install SAMBA/CIFS on the Unix system. But because you are only uploaded a single file, it might be an overkill.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Kenn Chen
Advisor

Re: Urgent ...help

could explain more detail and i need it for every minutes to get file from PC.
Cyber Zen
Printaporn_1
Esteemed Contributor

Re: Urgent ...help

HI,

If you're urgent
ftp form PC is most easy
by invoke ftp program at dos prompt
supply unix account and password
and use put for put PC file to unix
use get to get unix file to NT.
enjoy any little thing in my life
Ravi_8
Honored Contributor

Re: Urgent ...help

Hi,
For getting a file occassionally method suggested by printaporn is better, but in ur case since u need it often it is good to use SAMBA which makes ur job easier.
never give up
Bill McNAMARA_1
Honored Contributor

Re: Urgent ...help

you can always email it!

Later,
Bill
It works for me (tm)
TrustNo1
Regular Advisor

Re: Urgent ...help

How about setting up a cron job to run your FTP script as often as you wish.
Look into using .netrc file for security.
Refs;
man ftp
man netrc
Dare to Dream
Luis Miguel Parra Chica
Occasional Advisor

Re: Urgent ...help

I am NOT sure, but I remember some program called as "NFS maestro solo".

You can export your UNIX file system & install on your PC that program. In that way, you can connect your PC to your UNIX server and to share the files.
Touching that is DANGEROUS
f. halili
Trusted Contributor

Re: Urgent ...help

You may install uwin in your windows boxes. Soing so you will be able to treat your sindows machine as a unix box and do the ftp to and from your hp box & uwin box via cron. Make sure you have your user account on both systems.

- fnhalili
derekh
Jack Werner
Frequent Advisor

Re: Urgent ...help

Get into dos on your PC and rcp ? to see the rcp options.
You only have to add "+Your-PC-User-Name" to your home account's .rhosts file on the Unix box. You can then rcp any file on your PC, to any place on the Unix box that allows "world" to access and write(Usually /tmp allows this). At dos prompt :
cd to location on PC where file to be copied exists
rcp -b unixhostname.yourunixname:/tmp

At a unix prompt on yourunixhost;
cat ~yourunixname/.rhosts # should show the following
+ yourunixname
+ yourpcname
HINT: Unix is case-sensitive!!
i'm retired
Shannon Petry
Honored Contributor

Re: Urgent ...help

Well, I have seen alot of assumptions. Mostly about running "at" on Windows 98?????? I thought only NT has the "at" command! Setup an FTP Server on 98???

To do this via FTP every couple of minutes is crazy! This is a very tedious mechanism for transfering 1 file( unless it is HUGE!).

Download and install SAMBA, and read the docs. You can use smbclient to access a windows share directly, and therefor write a script to run via cron. Since smbclient is very similar to ftp the smbclient may not be the most effective mechanism.

The most effective method is to create a samba share, and mount that on windblows. Have the windblows program dumping a file dump to the mapped drive.

Read the docs for SAMBA, and you will learn all you need. pretty basic though...

If you have to use smbclient, then it is a bit better than ftp, because it is completely control the scripts from the UNIX box, without adding software to windblows!

Read the docs for smbclient, and you'll be off and running...

Regards
Shannon
Microsoft. When do you want a virus today?