- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Trying to write an automated FTP script
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
Discussions
Discussions
Forums
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
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
тАО11-22-2006 07:37 AM
тАО11-22-2006 07:37 AM
Trying to write an automated FTP script
#!/bin/sh
ftp -n IP <
cd /some_dir
bin
prompt off
put /some_file
bye
EOF
All I seem to get is:
Could not determine cwdir: No such file or directory.
Perhaps a problem with the user itself. I first tried root the a regular user.
What might I be missing? I'm pretty sure the user's home dirs are setup properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2006 08:19 AM
тАО11-22-2006 08:19 AM
Re: Trying to write an automated FTP script
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2006 08:24 AM
тАО11-22-2006 08:24 AM
Re: Trying to write an automated FTP script
You need to verify that your directories are as you think they are -- "No such file or directory" seems to say otherwise.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2006 09:09 AM
тАО11-22-2006 09:09 AM
Re: Trying to write an automated FTP script
determine cwdir" suggests that this message
is coming from the FTP server. As already
suggested, you should verify that the result
is the same when you do the work manually
instead of in the script.
> I first tried root the a regular user.
So, "root" and a normal user fail the same
way?
Google found several plausibly similar
inquiries with some plausible suggestions on
things to try or investigate.
> I'm pretty sure the user's home dirs are
> setup properly.
One of the suggestions I saw was:
Check the directory permissions on the parent directories. You need o+rx
on each directory from '/' to the cwd (user's home in this case).
It might help so see "ls -l" output showing
permissions and ownership on the users' home
directories (and every directory above them).
Knowing that you think that they're set up
properly is less valuable than seeing how
they're actually set up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2006 06:21 PM
тАО11-22-2006 06:21 PM
Re: Trying to write an automated FTP script
Please try to run the commands manually first to see if it is working properly before you script it!
Also look into secure copy (scp)
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2006 11:54 PM
тАО11-22-2006 11:54 PM