- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I need a UX-Windows ftp script...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 11:59 PM
05-24-2005 11:59 PM
Thanks,
Eric Antunes
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 12:07 AM
05-25-2005 12:07 AM
Re: I need a UX-Windows ftp script...
Your answer is there in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=544909
Regards,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 12:10 AM
05-25-2005 12:10 AM
Re: I need a UX-Windows ftp script...
Assuming there's an ftp deamon on windows, here's a same-like thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=811436
Cheers,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 12:33 AM
05-25-2005 12:33 AM
Re: I need a UX-Windows ftp script...
rcp -b C:\FILEPATH\FILENAME UXhostNAME.USERNAME:/path
Put it in a windoze script and then add it to the windoze scheduler.
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 01:17 AM
05-25-2005 01:17 AM
Re: I need a UX-Windows ftp script...
i have still an active process as yours
and upto now i have never seen any error...
Before this i have asked this in this forums
but it was urgent then i searched in internet
and found a software which was installed my
W2k server named Winsock RSHD/NT4 from
Denicomp...
For a single server it is not expensive and
also it very easy to install...this software
accepts rcp commands from any Ux systems in your network.
One of my production Ux server i have written
a very primitive script and put it onto my cron.
For exp;
Let's say that you wanna put some *.txt files
from UX --->W2k
then script likes;
cd source_dir
test -f *.txt && rcp -p *.txt ip_adress_W2k:/blah
from W2k--->UX
again script locates on my Ux box;
cd source_dir
rcp -p ip_adress_W2k:/blah* .
that's all...
Good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 01:26 AM
05-25-2005 01:26 AM
Re: I need a UX-Windows ftp script...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 01:35 AM
05-25-2005 01:35 AM
Re: I need a UX-Windows ftp script...
On your windows server, activate ftp service. cron a script on the unix box to get the file. In order to use ftp in a shell, lokk at the -n option. It will log without asking for user/pass. You'll have to supply them with user and pass commands.
for example :
ftp -n myWinServer << EOF
USER bob
PASS hisPass
cd thecorrectdir
get theFile
quit
EOF
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 01:35 AM
05-25-2005 01:35 AM
Re: I need a UX-Windows ftp script...
Yourfile=c:\somedir\file
ftp -nv w2kserver<
user ntuser ntuserpassword
bin
get $Yourfile
quit
EndFTP
A litle more secure - use a .netrc file - place in the home dir of the user that executes the script with permission 400
machine w2kserver login ntuser password ntuserpassword
Then the script:
Yourfile=c:\somedir\file
ftp -nv w2kserver<
bin
get $Yourfile
quit
EndFTP
You could also look at CIFS to accomplish this as well...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 02:11 AM
05-25-2005 02:11 AM
Re: I need a UX-Windows ftp script...
Thanks for the replies.
I'm analysing all the options given until now. After this I will assign points for all answers.
Harry,
What are "R'commands"? Remote commands??
Thanks,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 03:34 AM
05-25-2005 03:34 AM
Re: I need a UX-Windows ftp script...
They are available on windows with the appropriate software.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 03:38 AM
05-25-2005 03:38 AM
Re: I need a UX-Windows ftp script...
Using this script:
myfile=d:\dados\fab_ora\planeado.txt
ftp -nv windoze_server << EOT
user administrator pass
get $myfile
quit
EOT
I get:
"
...
d:dadosfab_oraplaneado.txt: The system cannot find the file specified."
Any clue??
Thanks,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 03:44 AM
05-25-2005 03:44 AM
Re: I need a UX-Windows ftp script...
You must cd, before get. Get with absolute path won't work
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 03:47 AM
05-25-2005 03:47 AM
Re: I need a UX-Windows ftp script...
It is a windoze ftp server: I cannot expect much more... :)
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 04:02 AM
05-25-2005 04:02 AM
Re: I need a UX-Windows ftp script...
How can I change to d:?
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 04:53 AM
05-25-2005 04:53 AM
Re: I need a UX-Windows ftp script...
myfile="d:\dados\fab_ora\planeado.txt"
ftp -nv windoze_server << EOT
user administrator pass
get $myfile
quit
EOT
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 05:21 AM
05-25-2005 05:21 AM
Solutioncd c:\hbrown\downloads
rcp -b boinc-hpux_32+64.tar.gz vpart1.root:/var
on your UX box, allow the user "root" from your windoze box to use .rhosts.
then on your windoze box (For XP:)
control panel->Scheduled tasks->add scheduled task
follow the "other" thirty instructions and then set the time to execute.
I did a one timer, and it worked great.
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 09:13 PM
05-26-2005 09:13 PM
Re: I need a UX-Windows ftp script...
I get:
"remshd: login incorrect" on the windoze server...
What do I need to put in .rhosts? I puted the following in .rhosts:
...
...
Is it wrong??
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 09:15 PM
05-26-2005 09:15 PM
Re: I need a UX-Windows ftp script...
Quoting doesn't work either... I'm asking the windoze administrator to give me a ftp user with an approriate home (d:...)
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 09:23 PM
05-26-2005 09:23 PM
Re: I need a UX-Windows ftp script...
The .rhosts file on the UX server should read like this.
Even though you are passing the root login to unix host, the local user (windows login) must be trusted by unix. You should try the windows loginname.
Thaya had the same problem. Check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=877339
Regards,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 10:04 PM
05-26-2005 10:04 PM
Re: I need a UX-Windows ftp script...
That's exactly this I have in .rhosts but no results...
Anyway, I'm going trought FTP since I got the right ftp home (d:\dados\fab_ora).
PS: I'll close this thread in the afternoon if no one have nothing more to say about the .rhosts issue!
Thanks to all,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2005 11:06 PM
05-26-2005 11:06 PM
Re: I need a UX-Windows ftp script...
In the home directory of hbrown (/home/hbrown) on my server vpart1, I created a .rhosts file with this entry:
rnd-hb.MYDOMAIN.com hbrown
I then modified the original script (M$ batch file) on my XP pc, to use the user name of hbrown:
cd c:\hbrown\downloads
rcp -b boinc-hpux_32+64.tar.gz vpart1.hbrown:/home/hbrown
The syntax of M$'s rcp is
rcp -b [hostname][.username]:[path] [hostname][.username]:[path]
-b for binary transmit (otherwise M$ will F with your data)
I then did the scheduling thing with the task manager (for testing purposes I run it once - by changing the date and time) and it worked great:
[root@vpart1 /home/hbrown]# ll
total 288
-r--r--r-- 1 hbrown users 832 Nov 14 2000 .cshrc
-r--r--r-- 1 hbrown users 347 Nov 14 2000 .exrc
-rw-rw-rw- 1 root sys 24 Jun 21 2004 .forward
-r--r--r-- 1 hbrown users 334 Nov 14 2000 .login
-rw------- 1 hbrown users 32572 Jun 8 2004 .lsof_vpart1
-r--r--r-- 1 hbrown users 470 May 25 07:11 .profile
-rw-rw-rw- 1 root sys 26 May 27 06:47 .rhosts
-rw-rw-rw- 1 root sys 20480 Jan 24 14:26 a.out
-rw-rw-rw- 1 root sys 11125 Oct 21 2004 sha256.c
-rw-rw-rw- 1 root sys 443 Oct 21 2004 sha256.h
-rw------- 1 root sys 4 Oct 21 2004 tryme
-rw-rw-rw- 1 root sys 4 Oct 21 2004 tryme2
[root@vpart1 /home/hbrown]#
After the rcp:
[root@vpart1 /home/hbrown]# ll
total 992
-r--r--r-- 1 hbrown users 832 Nov 14 2000 .cshrc
-r--r--r-- 1 hbrown users 347 Nov 14 2000 .exrc
-rw-rw-rw- 1 root sys 24 Jun 21 2004 .forward
-r--r--r-- 1 hbrown users 334 Nov 14 2000 .login
-rw------- 1 hbrown users 32572 Jun 8 2004 .lsof_vpart1
-r--r--r-- 1 hbrown users 470 May 25 07:11 .profile
-rw-rw-rw- 1 root sys 26 May 27 06:47 .rhosts
-rw-rw-rw- 1 root sys 20480 Jan 24 14:26 a.out
-rw-rw-rw- 1 hbrown users 350763 May 27 06:50 boinc-hpux_32+64.tar.gz
-rw-rw-rw- 1 root sys 11125 Oct 21 2004 sha256.c
-rw-rw-rw- 1 root sys 443 Oct 21 2004 sha256.h
-rw------- 1 root sys 4 Oct 21 2004 tryme
-rw-rw-rw- 1 root sys 4 Oct 21 2004 tryme2
[root@vpart1 /home/hbrown]#
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2005 02:35 AM
05-27-2005 02:35 AM
Re: I need a UX-Windows ftp script...
I'm using the following syntax:
d:\dados\fab_ora>rcp PLANEADO.TXT
But I still get "remshd: Login incorrect"... :(
My user administrator is the windows system adm. user. Do I need to define a unix user called administrator?? Is your hbrown user defined on both unix and windows systems??
Thanks,
Eric
Thanks,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2005 02:44 AM
05-27-2005 02:44 AM
Re: I need a UX-Windows ftp script...
i have just tried same as yours and i am also
faced same error
C:\>RCP -b cemokam.txt ipaddress_of_UX.test:/users/test
: remshd: Login incorrect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2005 03:12 AM
05-27-2005 03:12 AM
Re: I need a UX-Windows ftp script...
You may have a resolution problem. To be sure, you can try to use IP. I did the following :
. On Unix, in my home directory
$> cat > .rhosts << EOF
10.33.200.14 fruffet
EOF
$> chmod 444 .rhosts
$> ll
total 2
-rw-r----- 1 fruffet users 16 Apr 27 10:24 essai
. On windows
T:\>rcp margaux.fruffet:essai essai.txt
T:\>dir essai.txt
Le volume dans le lecteur T s'appelle fruffet
Le numéro de série du volume est 13F2-15A6
Répertoire de T:\
27/05/2005 17:12 17 essai.txt
1 fichier(s) 17 octets
0 Rép(s) 2 134 376 448 octets libres
(-b was not used, so I have one more byte).
Important points may be
. chmod
. use IP in .rhosts file.
Note that user must not be called the same on both servers. They are really distinct. .rhosts file is here to bind them.
R
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2005 03:48 AM
05-27-2005 03:48 AM
Re: I need a UX-Windows ftp script...
Here is my 444 .rhosts at /disc2/app/
On windows, I do:
d:\dados\fab_ora>rcp PLANEAMENTO.TXT
But I get the same error... :((