- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- files dowbload using FTP
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
10-08-2007 07:31 PM
10-08-2007 07:31 PM
i written a shell script to download files forom another screver to my server, for that iam using "crontab" to run the script. but my problem is total script is not executing why? its its saying *.* drectory is not found error and remote Directory is not found like that pls go through the attachment please.
i set crontab Like this
12 02 * * * sh /abc/test.sh
Thank you,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 07:38 PM
10-08-2007 07:38 PM
Re: files dowbload using FTP
add
'prompt off'
before first mget
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 07:52 PM
10-08-2007 07:52 PM
Re: files dowbload using FTP
just asking for knowledge sir... pls tell me sir...
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 08:02 PM
10-08-2007 08:02 PM
Re: files dowbload using FTP
Can you try the attached script ( change the required parameters)
Thanks,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 08:03 PM
10-08-2007 08:03 PM
Re: files dowbload using FTP
sorry the script was not attached , pls check now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 08:54 PM
10-08-2007 08:54 PM
Re: files dowbload using FTP
>'prompt off' mean i am not getting.
Also as Ivan said, you may need to add the command:
prompt off
After your "user" command. (I don't see it making a difference.)
If there are no files to get, I get:
*.*: No such file or directory.
can't find list of remote files: No such file or directory
Note that *.* requires there to be a ".". For unix, if you want to copy all files, you need just a *.
>Aneesh: Can you try the attached script
I'm not sure how using "quote USER" is any better than putting both on the "user" command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 09:46 PM
10-08-2007 09:46 PM
Re: files dowbload using FTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 10:02 PM
10-08-2007 10:02 PM
Re: files dowbload using FTP
Well, I don't think you need it, you should work fine without it. You got past that login step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 05:54 PM
10-09-2007 05:54 PM
Re: files dowbload using FTP
i send my shell script in before message pls check that sir....
******************************************
Output
******************************************
Interactive mode off.
Local directory now /prod/pub
*.: No such file or directory.
can't find list of remote files: No such file or directory
Local directory now /prod/weblib
Local directory now /prod/pub
*.: No such file or directory.
can't find list of remote files: No such file or directory
Local directory now /prod/weblib
*.: No such file or directory.
can't find list of remote files: No such file or directory
Local directory now /prod/weblib
*.: No such file or directory.
can't find list of remote files: No such file or directory
Local directory now /prod/pub
*.: No such file or directory.
can't find list of remote files: No such file or directory
Local directory now /lee/weblib
*.: No such file or directory.
can't find list of remote files: No such file or directory
Local directory now /lee/pub
*.: No such file or directory.
can't find list of remote files: No such file or directory
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
sh /hai/test.sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 07:17 PM
10-09-2007 07:17 PM
Solution*.: No such file or directory.
You might want to use the "ls" command to show what files are there.
But it appears you saw "*." and used that. The "." was the end of the sentence, not part of the syntax you needed. So you need:
mget *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 08:48 PM
10-09-2007 08:48 PM
Re: files dowbload using FTP
I tested this script (first part of yours) and on HPux11i it ran correctly:
ftpsrv=localhost
uid=galbiati
passwd=mypass
ftp -nv $ftpsrv<
lcd prod/weblib
!pwd
cd cad/weblib
pwd
ls -l
prompt off
mget *
close
bye
endftp
10:44 root/home/galbiati/> ftpx
Connected to localhost.bbn.hp.com.
220 hpbbnn1.bbn.hp.com FTP server (Version 1.1.214.4(PHNE_34544) Fri Feb 24 15:03:24 GMT 2006) ready.
Remote system type is UNIX.
Using binary mode to transfer files.
331 Password required for galbiati.
230 User galbiati logged in.
Local directory now /home/galbiati/prod/weblib
/home/galbiati/prod/weblib
250 CWD command successful.
257 "/home/galbiati/cad/weblib" is current directory.
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 0
-rw------- 1 galbiati ermsupp1 0 Oct 10 10:35 a
-rw------- 1 galbiati ermsupp1 0 Oct 10 10:35 a1
226 Transfer complete.
Interactive mode off.
local: a remote: a
200 PORT command successful.
150 Opening BINARY mode data connection for a (0 bytes).
226 Transfer complete.
local: a1 remote: a1
200 PORT command successful.
150 Opening BINARY mode data connection for a1 (0 bytes).
226 Transfer complete.
221 Goodbye.
10:44 root/home/galbiati/>
Note: I added -v (verbose) option, !pwd, pwd, ls -l to better debug the script. To transfer file a, a1 you should use mget * only.
HTH,
Art
N.B. please assign points!