- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- trying to ftp a file from unix to NT
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
09-03-2003 06:45 AM
09-03-2003 06:45 AM
i'm doing an ftp between UNIX and WINDOWS NT but when i do my put, i have an error in the ftp.log where it saying:
"gotdate.txt: Access is denied."
but my file is: "-rw-rw-rw-"
and the owner is: "bsp:bsp"
here is my script to ftp the file:
cd /wri
date > gotdate.txt
chown bsp:bsp gotdate.txt
chmod 666 gotdate.txt
ftp -i -n 10.10.198.9 > /wri/ftp.log << -EOF
user login password
cd \TimeSync
ascii
put gotdate.txt
bye
EOF
what is wrong with the file?
thanks
Patrice
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 06:48 AM
09-03-2003 06:48 AM
Solutionftp -i -n 10.10.198.9 > /wri/ftp.log << -EOF
user login password
cd \TimeSync
ascii
put gotdate.txt
bye
EOF
To
ftp -i -n 10.10.198.9 > /wri/ftp.log <
cd \TimeSync
ascii
put gotdate.txt
bye
EOF
I don't know what that dash was doing there, but it might not be helping.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 06:49 AM
09-03-2003 06:49 AM
Re: trying to ftp a file from unix to NT
manually it works?
Sounds like a permission problem in thw writing on the file on the window side.
Direction is UNIX -> WINDOW ?
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 06:50 AM
09-03-2003 06:50 AM
Re: trying to ftp a file from unix to NT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 06:52 AM
09-03-2003 06:52 AM
Re: trying to ftp a file from unix to NT
The -EOF allows the ending EOF to be preceded by a single TAB character. This allows you to make the script a bit prettier. But since the Forums eliminate all leading spaces, we can't see exactly what her script looked like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 06:57 AM
09-03-2003 06:57 AM
Re: trying to ftp a file from unix to NT
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 07:09 AM
09-03-2003 07:09 AM
Re: trying to ftp a file from unix to NT
Do i need to set something in FTP to be able to read the file?
regards
Patrice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 07:19 AM
09-03-2003 07:19 AM
Re: trying to ftp a file from unix to NT
untill it won't work manually, do not think of having the script working. It looks good, so there must be other config that you are missing, probably on thw window side.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 07:28 AM
09-03-2003 07:28 AM
Re: trying to ftp a file from unix to NT
Learn something new every day here, lately from Patrick.
Massimo is right, since the script is not an issue, it must be permissions on the NT side.
Get on the NT box, and find the file.
Right mouse properties, security.
You might see the problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 07:40 AM
09-03-2003 07:40 AM
Re: trying to ftp a file from unix to NT
The functionality is the same. Just some slight confusion on my part earlier. Must've not had enough coffee yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 07:53 AM
09-03-2003 07:53 AM
Re: trying to ftp a file from unix to NT
Check if the user account you are using to log in to the Windows NT system is a local or a domain user. Change the user name with a domain name (or computer name/work group name) in front of it:
'my_domain/user' instead of 'user'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 01:47 PM
09-03-2003 01:47 PM
Re: trying to ftp a file from unix to NT
Let me ask you this, all i'm trying to do is sync the time of the NT server with the time on the Unix server. We're trying to do this without paying a 3rd party software. I've tried FTP from NT to UNIX, FTP from Unix to NT, same error on both side (file.txt: access is denied).
Do you have any suggestions on this?
thanks
Patrice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 01:50 PM
09-03-2003 01:50 PM
Re: trying to ftp a file from unix to NT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 01:54 PM
09-03-2003 01:54 PM
Re: trying to ftp a file from unix to NT
# man xntpd
Not sure how you can achieve this through ftp though ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 01:55 PM
09-03-2003 01:55 PM
Re: trying to ftp a file from unix to NT
NTP will then maintain time across hundreds of boxes to within a few milliseconds. You can use an Internet time source that will sync to some very accurate time sources and even automatically compensate for transmission delays.
Look in /usr/share/doc/NTP_Primter.txt to get started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 02:08 PM
09-03-2003 02:08 PM
Re: trying to ftp a file from unix to NT
http://nettime.sourceforge.net/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 02:12 PM
09-03-2003 02:12 PM
Re: trying to ftp a file from unix to NT
regards
Patrice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 05:23 PM
09-03-2003 05:23 PM
Re: trying to ftp a file from unix to NT
Please get me right if I'm wrong.
If you want to ftp to NT,you need ftp server running on the NT.
Am I right ?.
Without additional software you can't do it...
I think ??? Again corrent me if I'm wrong.
If wrong,forgive me because I think I have a fever.....my brain is quite warm now.
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 06:53 PM
09-03-2003 06:53 PM
Re: trying to ftp a file from unix to NT
on the NT side, check the events or services log file. maybe this might lead a clue.
if you are using a Domain name, check to see that your 'user' account is like a Power user or an Administrative user. Check with your NT administrator, and verify all the objects/attributes of your user account within the 'domain controller'.