- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with automated FTP transfer
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
05-25-2005 06:24 AM
05-25-2005 06:24 AM
cd /tmp
/tmp/cpm_collect.sh
NODE=`hostname`
PUTFILE="/tmp/${NODE}.fs"
ftp -v -n <
user (username and password removed)
bin
hash
cd "/incoming"
put $PUTFILE
quit
EOF
when I run the script, I get the error message
553 Could not determine cwdir: No such file or directory.
when it attempts to put the file.
Where am I going astray?
Thanks
Alan J Meyer
Unix - Midrange Computing Division
Internal Service Department
County of Los Angeles
Phone: 562-658-4373
FAX: 562-803-1294
E-mail: ameyer@isd.co.la.ca.us
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 06:36 AM
05-25-2005 06:36 AM
Re: problem with automated FTP transfer
cd "/incoming" is not getting interpreted correctly, due to one of the two things:
1. the connected host 192.151.52.51 is treating the " signs literally and looking for a directory called "/incoming"
2. /incoming on this host is not there
I tried to login using my ITRC username and password but it failed due to some reason, so I can not verify which one is which.
when you login to this server manually, i.e. not within a scriopt but using an interactive session, do you see /incoming directory ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 06:38 AM
05-25-2005 06:38 AM
Re: problem with automated FTP transfer
cd incoming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 06:40 AM
05-25-2005 06:40 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 06:44 AM
05-25-2005 06:44 AM
Re: problem with automated FTP transfer
or cd incoming/
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
05-25-2005 06:56 AM
05-25-2005 06:56 AM
Re: problem with automated FTP transfer
Install patch PHNE_30989 (s700_800 11.00 ftpd(1M) and ftp(1) patch) for 11.00 or the equivalent for your OS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 07:02 AM
05-25-2005 07:02 AM
Re: problem with automated FTP transfer
I think your remote directory is an alias and not a real folder.
It seems to work fine for access via HTTP and also for listing sub-directories by FTP, even for creating new directories within it - just not for uploading files.
Check if the folder is an actual folder please, and give us feedback.
Cheerio,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 10:06 AM
05-25-2005 10:06 AM
Re: problem with automated FTP transfer
Thanks for the help
-a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2006 09:42 PM
11-17-2006 09:42 PM
Re: problem with automated FTP transfer
I also faced the same problem.
One of the reason for the problem is the absolute lenght of ${NODE} may be long (too logn for the FTP to remember/read). Then the problem comes.
if your user has permissions to change to the directory/path mentioned in ${NODE}, then switch to that dir and take the PUTFILE in a variable and while 'put' use that variable.
pfile=`basename $PUTFILE`
export pfile
......
......
put ${pfile}
It works.... But If you dont have permissions to that dir, then we've to think again..??